Re: saveDocument:
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