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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to