Re: Optional methods
Re: Optional methods
- Subject: Re: Optional methods
- From: "Mike R. Manzano" <email@hidden>
- Date: Thu, 21 Feb 2008 20:38:19 -0800
Aha. Just want I wanted to know. You're right, I should have tried it
first :)
Thanks,
Mike
On Feb 21, 2008, at 8:06 AM, Hamish Allan wrote:
On Thu, Feb 21, 2008 at 3:57 PM, Mike R. Manzano <email@hidden>
wrote:
I know about the pattern to shut the compiler up: create a category
on
NSObject with the method defined, but if I were to do that, wouldn't
respondsToSelector: always return YES for that method, defeating the
point of calling respondsToSelector: in the first place?
You could always try it out and see ;)
The category interface will shut the compiler up; you don't need to
provide its implementation.
Hamish
_______________________________________________
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