Re: NSDocument Enabling and handling menu items without implementing the action method in the document class
Re: NSDocument Enabling and handling menu items without implementing the action method in the document class
- Subject: Re: NSDocument Enabling and handling menu items without implementing the action method in the document class
- From: Jerry Krinock <email@hidden>
- Date: Sun, 19 Jul 2009 12:58:49 -0700
On 2009 Jul 19, at 05:46, Graham Cox wrote:
use invocation forwarding. You need to override the following
NSObject methods:
- (NSMethodSignature *) methodSignatureForSelector:(SEL) aSelector;
- (BOOL) respondsToSelector:(SEL) aSelector;
- (void) forwardInvocation:(NSInvocation*) invocation;
If you're targetting Mac OS 10.5 or later, I believe there is an
easier way. Search this page:
http://developer.apple.com/releasenotes/Cocoa/Foundation.html
for this word:
forwardingTargetForSelector
_______________________________________________
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