Re: NSArray firstObject?
Re: NSArray firstObject?
- Subject: Re: NSArray firstObject?
- From: Trygve Inda <email@hidden>
- Date: Sun, 22 Dec 2013 10:57:01 -0800
- Thread-topic: NSArray firstObject?
> Yes. This method is there since 10.6 so you can safely call it. using latest
> header or category on it.
On Dec 23, 2013, at 1:49, Seth Willits
> <email@hidden> wrote:
> On Dec 22, 2013, at 9:31 AM, Trygve Inda
> <email@hidden> wrote:
>
>> Available in OS X v10.6 and later.
>>
>
>> This seems to be an error in the docs as the method does not seem to
> exist
>> for me.
>
> What do you mean?
>
> As I recall, when it was
> announced at WWDC the method become public only recently, but they explicitly
> said it was actually implemented since 10.6. So you can safely use it as the
> docs mention. If you're not using the latest SDK(s) with the API change in it,
> then you'll simply need to declare the method yourself in a category and it'll
> work fine.
>
>
>
> --
> Seth Willits
>
>
>
>
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;
_______________________________________________
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