Re: How to avoid warning?
Re: How to avoid warning?
- Subject: Re: How to avoid warning?
- From: Jens Alfke <email@hidden>
- Date: Mon, 21 Jan 2013 14:12:39 -0800
On Jan 21, 2013, at 10:14 AM, Dave <email@hidden> wrote:
> if (class_RespondsToSelector(myClass,@selector(initWithManager:) == NO)
Off-topic: instead of using the Obj-C runtime’s C API, you can express this as
if ([myClass instancesRespondToSelector: @selector(initWithManager:)] == NO)
—Jens
_______________________________________________
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