• 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: arrayWithContentsOfFile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arrayWithContentsOfFile


  • Subject: Re: arrayWithContentsOfFile
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 13 Oct 2009 15:01:39 -0400

On Oct 13, 2009, at 2:54 PM, Jens Alfke wrote:

The docs say it returns nil if the file doesn't exist, and he's getting an empty array. That was his question.
...
You must have misread his code — he's using NSHomeDirectory() as a prefix.

My apologies, you're absolutely right. I read that on the iPhone in Google's mobile gmail reader ... while walking. :-)


  Sorry for the noise.

A PLIST can have an array root or a dictionary root. Are you sure your PLIST has an array root? I would still expect nil (ie, it can't create an array from a dictionary-rooted PLIST), but it's worth checking.

--
I.S.




_______________________________________________

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: arrayWithContentsOfFile
      • From: DKJ <email@hidden>
References: 
 >arrayWithContentsOfFile (From: DKJ <email@hidden>)
 >Re: arrayWithContentsOfFile (From: "I. Savant" <email@hidden>)
 >Re: arrayWithContentsOfFile (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Returning to app after phone call
  • Next by Date: Re: arrayWithContentsOfFile
  • Previous by thread: Re: arrayWithContentsOfFile
  • Next by thread: Re: arrayWithContentsOfFile
  • Index(es):
    • Date
    • Thread