On Wed, May 9, 2012 at 5:40 PM, Quincey Morris <
quinceymor...@rivergatesoftware.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to