• 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: Simple menu-action question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple menu-action question


  • Subject: Re: Simple menu-action question
  • From: "Hamish Allan" <email@hidden>
  • Date: Mon, 31 Mar 2008 23:36:21 +0100

On Mon, Mar 31, 2008 at 11:29 PM, Rick Mann <email@hidden> wrote:

>  It's easy enough to make my app open more document types, but that
>  doesn't really get at the core of the problem...how does one add
>  fundamental commands similar to Open? They're targeted at the first
>  responder, and it seems that typically, one does not subclass
>  NSApplication. Who handles these actions when the messages are sent,
>  in the varying cases of having a document open, vs. no document open,
>  etc?

In a document-based application, the document controller does. See
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSDocumentController_Class/Reference/Reference.html#//apple_ref/occ/instm/NSDocumentController/openDocument:

Hamish
_______________________________________________

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: Simple menu-action question
      • From: Rick Mann <email@hidden>
    • Re: Simple menu-action question
      • From: Rick Mann <email@hidden>
References: 
 >Simple menu-action question (From: Rick Mann <email@hidden>)
 >Re: Simple menu-action question (From: Graham Cox <email@hidden>)
 >Re: Simple menu-action question (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Cocoa GUI app invocation from CLI with arguments
  • Next by Date: Re: Cocoa GUI app invocation from CLI with arguments
  • Previous by thread: Re: Simple menu-action question
  • Next by thread: Re: Simple menu-action question
  • Index(es):
    • Date
    • Thread