Re: Preventing Document-Based App from opening new doc when opened
Re: Preventing Document-Based App from opening new doc when opened
- Subject: Re: Preventing Document-Based App from opening new doc when opened
- From: Enigmarelle Development <email@hidden>
- Date: Thu, 8 Nov 2001 22:19:47 -0500
-applicationShouldOpenUntitledFile is called from your app's delegate on
startup and when switching.
When the user chooses New from the File menu the application performs
whatever action the File menu's New item is connected to - FirstResponder
newDocument by default. Override that in your document controller if you
want different behaviour.
-john
On Thursday, November 8, 2001, at 10:01 PM, Donald Brown wrote:
I've been searching, and one thing I'm unclear on. Is
-applicationShouldOpenUntitledFile called when the user chooses "New" from
the File Menu? So, if I want to do something different on startup
(opening
a file that the user has said "open at startup"), do I have to figure out
why the app is trying to open the untitled file?
Donald