• 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: What is the modern Cocoa way to send an Apple Event to yourself?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the modern Cocoa way to send an Apple Event to yourself?


  • Subject: Re: What is the modern Cocoa way to send an Apple Event to yourself?
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 22 Aug 2014 08:40:17 -0700

On Aug 21, 2014, at 10:24 PM, Daryle Walker <email@hidden> wrote:
>
> I changed my app from implementing -application:openFile: to -application:openFiles: in my application delegate. Then, I noticed that my Open File menu command directly calls my window creation function, and I decided to change the action handler to call -application:openFiles: instead. Later I realized that changing a global via -replyToOpenOrPrint: to the application object may not be a good idea if said object doesn’t expect it (like outside of application launch). So now I want to re-reimplement the open-file action handler by calling the open-file Apple Event to myself.

This is a very strange idea. Cocoa applications do not do this; they just call straight into NSDocumentController.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: What is the modern Cocoa way to send an Apple Event to yourself?
      • From: Fritz Anderson <email@hidden>
References: 
 >What is the modern Cocoa way to send an Apple Event to yourself? (From: Daryle Walker <email@hidden>)

  • Prev by Date: buggy sequence: miniaturize/close/makeKeyAndOrderFront
  • Next by Date: Re: What is the modern Cocoa way to send an Apple Event to yourself?
  • Previous by thread: Re: What is the modern Cocoa way to send an Apple Event to yourself?
  • Next by thread: Re: What is the modern Cocoa way to send an Apple Event to yourself?
  • Index(es):
    • Date
    • Thread