• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why can I make a new document this way?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Why can I make a new document this way?! (From: Charles Srstka <email@hidden>)

  • Prev by Date: multiple views with segmented control
  • Next by Date: Re: NSImage buggy when scaling images above real size?
  • Previous by thread: Why can I make a new document this way?!
  • Next by thread: Re: Why can I make a new document this way?!
  • Index(es):
    • Date
    • Thread