• 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: Updating application info plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating application info plist


  • Subject: Re: Updating application info plist
  • From: Randall Meadows <email@hidden>
  • Date: Fri, 9 Oct 2009 09:16:44 -0600

On Oct 9, 2009, at 3:55 AM, Zephyroth Akash wrote:

I get the Info.plist of the app like this.
NSMutableDictionary *infoPlist = [[NSBundle mainbundle] infoDictionary];


After the update of some resources I want to write the new version of these resources in the Info.plist.

No problem.

But when the app execute : [infoPlist writeToFile:pathToInfoPlistOfTheApp atomically:YES];

Nothing happens even if I change the path to my desktop, the dictionary is not written.

Are there some limitations ?

There are limitations on what types of objects you can put in a dictionary such that it can be written out to a property list file. Specifically, only NSData, NSDate, NSNumber, NSString, NSArray, and/or NSDictionary objects. Any other type of object in the dictionary will cause the write to fail.
_______________________________________________


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


References: 
 >Updating application info plist (From: Zephyroth Akash <email@hidden>)

  • Prev by Date: Re: Hide an Item on Desktop
  • Next by Date: Re: Updating application info plist
  • Previous by thread: Re: Updating application info plist
  • Next by thread: Re: Updating application info plist
  • Index(es):
    • Date
    • Thread