Re: Optional methods
Re: Optional methods
- Subject: Re: Optional methods
- From: "Hamish Allan" <email@hidden>
- Date: Thu, 21 Feb 2008 16:06:09 +0000
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