• 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: saveDocument:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: saveDocument:


  • Subject: Re: saveDocument:
  • From: ecir hana <email@hidden>
  • Date: Thu, 10 May 2012 11:12:13 +0200

On Wed, May 9, 2012 at 5:40 PM, Quincey Morris <
email@hidden> wrote:

> Very occasionally, it's necessary to subclass the NSDocumentController and
> force the singleton to your own subclass, but this is rare.
>
>
This is what I try to do - subclass the
NSDocumentController in applicationWillFinishLaunching:.


Thus, for example, the 'saveDocument:' action will be normally be delivered
> to the NSDocument-subclass object directly, because it is in the responder
> chain that's active when the menu item is chosen. Note that NSDocument
> *has* a 'saveDocument:' method; NSDocumentController doesn't.
>

Ok. My NSDocument has "saveDocument:", and my NSDocumentController doesn't
have it. But the menu has "Save as" disabled.

Thanks for the links, there is also:

http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/MenuList/Articles/EnablingMenuItems.html
_______________________________________________

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: saveDocument:
      • From: Graham Cox <email@hidden>
    • Re: saveDocument:
      • From: ecir hana <email@hidden>
References: 
 >saveDocument: (From: ecir hana <email@hidden>)
 >Re: saveDocument: (From: Fritz Anderson <email@hidden>)
 >Re: saveDocument: (From: ecir hana <email@hidden>)
 >Re: saveDocument: (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Accessibility issues with NSPopover
  • Next by Date: Re: monitoring changes in a local property
  • Previous by thread: Re: saveDocument:
  • Next by thread: Re: saveDocument:
  • Index(es):
    • Date
    • Thread