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: Robert Cerny <email@hidden>
- Date: Wed, 17 Mar 2004 08:12:30 +0100
Hi,
I'm not an AppleScript guy but I believe that
applicationShouldOpenUntitledFile is not catching this event. Your
srcipt is IMHO the same as "let user select New window from the menu".
I didn't test it but believe, that applicationShouldOpenUntitledFile
will catch event like this one:
tell application "SuperCoolApp"
activate
end tell
Robert
On 17.3.2004, at 4:15, 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?
Charles
_______________________________________________
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.
_______________________________________________
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.