Re: NSDocument
Re: NSDocument
- Subject: Re: NSDocument
- From: "Erik M. Buck" <email@hidden>
- Date: Tue, 6 Nov 2001 14:28:00 -0600
>
1) I get a window "Untitled" each time I start my application. This is
>
probably good for editors, but since my application is a viewer, I
>
don't want this behaviour. Can I turn it off?
This question has been answered many times in this forum and others.
I have spent the two minutes searching for the answer on your behalf. Next
time search for yourself please or hire a librarian.
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/Ob
jC_classic/Classes/NSApplication.html
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
Invoked immediately before opening an untitled file. Return NO to prevent
the application from opening an untitled file; return YES, otherwise. Note
that applicationOpenUntitledFile: is invoked if this method returns YES.
>
>
2) When documents are opened, the outlets aren't connected to my
>
MyDocument instance. In the "Untitled" window they are. Why is
>
this, and how can I make them connected?
>
You probably did make connections to File's Owner in the nib.