Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
NSArchiver and Paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArchiver and Paths



I am trying to save an NSMutableArray using NSArchiver and the method...
[NSArchiver archiveRootObject:theObject toFile:@"~/Library/TheDir/TheFile.extension"];


However it is not working. It seems like it is a problem with the path that I am giving it. Is it valid to specify the users home directory as ~ in this method or does it have to be an absolute pathname or is there something else that I am doing wrong?

Thanks,
	Erik Sundahl
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.