NSMutableDictionary writeToFile:


i must on looking simple here rob helped me earlier on same project. dictionary called 'skills' , trying write dictionary hard drive using code
code:
   [skills writetofile:@"/users/test.plist" atomically:yes];
when in users folder there no test.plist file? read documentation , searched on line , followed examples. writetofile method of nsmutabledictionary.

storing information in dictionary 2 nstextfields object , key code
code:
[skills setobject:[skillbonuspreffield stringvalue] forkey:[skillnamepref stringvalue]]; 
there must simple answers why can't see file, hope
 

you'll find call failing , returning no because users can't write /users directory. try writing subdirectory under /users. example, @"/users/lars/test.plist".
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Has to be the funniest headline ive ever seen

Man Brings Goat to Apple Store and has Pizza Delivered

Elusive Ninja: The Shadowy Thief - Can you survive the fast-paced ninja chaos?