• 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: Fritz Anderson <email@hidden>
  • Date: Sun, 22 Dec 2013 12:01:52 -0600

On Dec 22, 2013, at 11:31 AM, Trygve Inda <email@hidden> wrote:

[Quotes the documentation that says -[NSArray firstObject] is available since Mac OS 10.6.]

> This seems to be an error in the docs as the method does not seem to exist
> for me.

I didn't see the method at all in the docs until I drew upon a very recent version of the documentation, and I see what you see.

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?

	— 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


  • Follow-Ups:
    • Re: NSArray firstObject?
      • From: Michael Starke <email@hidden>
References: 
 >NSArray firstObject? (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: NSArray firstObject?
  • Next by Date: Re: NSArray firstObject?
  • Previous by thread: Re: NSArray firstObject?
  • Next by thread: Re: NSArray firstObject?
  • Index(es):
    • Date
    • Thread