-[NSObject forwardingTargetForSelector:]?
-[NSObject forwardingTargetForSelector:]?
- Subject: -[NSObject forwardingTargetForSelector:]?
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 26 Jan 2008 08:20:50 -0500
- Thread-topic: -[NSObject forwardingTargetForSelector:]?
The Leopard Foundation release notes explain how to use the new
-forwardingTargetForSelector: method to get much faster forward invocation
in appropriate circumstances, and it works nicely for me.
But the release notes also say that my non-root class that implements this
method should call super's implementation if my class decides not to return
a value. When I do this in my subclass of NSWindowController, I get a
warning, for example, that NSWindowController may not implement this method.
Sure enough, looking at the NSObject header in the Mac OS X 10.5.1 Leopard
frameworks, I see that this method has been commented out with leading
double-slashes.
Is this an error? Why would it be declared but commented out without
explanation in the release version of the Cocoa Foundation framework?
And what should I do to avoid the warning? If I return nil, everything seems
to work. But I wonder if it will cause problems.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
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