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
code:
[skills writetofile:@"/users/test.plist" atomically:yes]; click expand...
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
Post a Comment