Re: NSArray firstObject?
Re: NSArray firstObject?
- Subject: Re: NSArray firstObject?
- From: Ken Thomases <email@hidden>
- Date: Sun, 22 Dec 2013 14:04:47 -0600
On Dec 22, 2013, at 12:57 PM, Trygve Inda wrote:
> So just declare it in a category and leave it out of the implementation?
>
> That of course gives me a warning that my implementation is incomplete.
>
> -(id)firstObject;
The category should have no implementation (i.e. no @implementation NSArray (YourCategoryName) … @end). It's perfectly legal to have interface-only categories that merely declare methods.
Regards,
Ken
_______________________________________________
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