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

Mail will not Quit when shutting down

MacBook Air 2011 Reviews

What's the max amount of RAM an iMac can have to run BootCamp & Parallels Windows 7?