• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSArray firstObject?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: NSArray firstObject? (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: How to accept drag of a URL on the dock icon?
  • Next by Date: Re: Sandboxing: Can't bookmark enclosing folder of user-selected file
  • Previous by thread: Re: NSArray firstObject?
  • Next by thread: Re: NSArray firstObject?
  • Index(es):
    • Date
    • Thread