Re: NSArray firstObject?
Re: NSArray firstObject?
- Subject: Re: NSArray firstObject?
- From: Michael Starke <email@hidden>
- Date: Sun, 22 Dec 2013 19:14:34 +0100
On 22 Dec 2013, at 19:01, Fritz Anderson <email@hidden> wrote:
>
> On Dec 22, 2013, at 11:46 AM, Michael Starke <email@hidden> wrote:
>
>> It's been a private API until 10.9 and iOS 7. Clearly a documentation error.
>
> That's not what NSArray.h says…
>
> - (id)firstObject NS_AVAILABLE(10_6, 4_0);
>
> … and that's closer to what I remember. Perhaps it was private at the time the 10.6 SDK was first published, but made available retroactively later.
>
> But you should be able to find it in the SDK — what version are you building against?
>
As said by others in this thread, it's there since 10.6 as private but if you use anything below 10.9 as SDK NSArray.h doesn't list a "firstObject".
At least not with my SDK. But since it's there, going the way of declaring it yourself and then just calling it should work down to 10.6.
I did just check 10.8 and it's NSArray.h doesn't show any sign of firstObject.
> — F
>
> --
> Xcode 5 Start to Finish — due in stores in April
>
>
> _______________________________________________
>
> 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
___m i c h a e l s t a r k e____
geschäftsführer
HicknHack Software GmbH
www.hicknhack-software.com
___k o n t a k t____
+49 (170) 3686136
email@hidden
___H i c k n H a c k S o f t w a r e G m b H____
geschäftsführer - maik lathan | andreas reischuck | michael starke
bayreuther straße 32
01187 dresden
amtsgericht dresden HRB 30351
sitz - dresden
_______________________________________________
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