On 22 Dec 2013, at 19:01, Fritz Anderson <fri...@manoverboard.org> wrote: > > On Dec 22, 2013, at 11:46 AM, Michael Starke > <michael.sta...@hicknhack-software.com> 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 (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/michael.starke%40hicknhack-software.com > > This email sent to michael.sta...@hicknhack-software.com ___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 cont...@hicknhack.com ___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 (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