Re: Why can I make a new document this way?!
Re: Why can I make a new document this way?!
- Subject: Re: Why can I make a new document this way?!
- From: Gregory Weston <email@hidden>
- Date: Wed, 17 Mar 2004 07:21:54 -0500
On Mar 17, 2004, at 12:43 AM, Charles Srstka wrote:
Okay, why does this script:
tell application "SuperCoolApp"
make new document
end tell
end up creating a new document object even if the application delegate
implements this method:
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender {
return NO;
}
Is this a bug in Cocoa?
It actually looks like a documentation bug. Every sample I can find
that uses this - on Apple's site and elsewhere - has a comment to the
effect that they're doing so to prevent the creation of a blank
document _on_launch_.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.