Re: DocumentController subclass needed?
Re: DocumentController subclass needed?
- Subject: Re: DocumentController subclass needed?
- From: David P Henderson <email@hidden>
- Date: Wed, 23 May 2001 08:44:59 -0400
On Wednesday, May 23, 2001, at 03:35 , Mark Slater wrote:
Is there an easy way to turn that off in my NSApplication instance, or
is this one of those cases where I'll need to write my own
NSDocumentController subclass? Alternatively, is there a simple way to
get the default action to present an open dialog rather than a new
document?
You need to implement -applicationShouldOpenUntitledFile: in your
application delegate, see the NSApplication delegate methods. As to
presenting an open dialog at start up, you could implement another NSApp
delegate method like -applicationDidFinishLaunching: and call your open
method from there.
Dave
--
Chaos Assembly Werks
"The proper office of a friend is to side with you when you are in the
wrong. Nearly anybody will side with you when you are in the right."
- Mark Twain