|Jan 27, 2011, 09:11 AM||#2|
This is from a Mac App I wrote but it should be similar.
This is for a resource in the preferences folder on my mac, so you'd have to change the path to be your resource instead, but this should give you a start. Also the file I am loading is a Plist and all of the key object combinations are loaded into a dictionary.
NSString *path; path = @"~/Library/Preferences/file.plist"; NSString *absolutePath = [path stringByExpandingTildeInPath]; NSDictionary *contentDictionary = [[NSDictionary alloc] initWithContentsOfFile:absolutePath];
Sorry this isn't exactly the same but I thought it might help...
Last edited by dejo; Jan 27, 2011 at 10:00 AM. Reason: Please use [code] tags.
|Jan 27, 2011, 09:24 AM||#3|
In code which gives from you I see the way to continue.
Last edited by dejo; Jan 27, 2011 at 10:01 AM. Reason: Quoted post edited.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|An Error occurred trying to load this content||Maceddy||iPhone||0||May 16, 2014 08:39 PM|
|Finder Not Searching Folders for File Names or File Content||HoberMallow||Mac mini||1||Sep 30, 2013 11:47 AM|
|App Store won't load content.||darngooddesign||iOS 6||8||Jan 15, 2013 10:58 AM|
|S-L-O-W To Load Local Content||soupy||Apple TV and Home Theater||2||Oct 4, 2012 09:37 PM|
|Can't detect NSString content because of Formatting||gwelmarten||Mac Programming||9||Jun 9, 2012 06:25 AM|
All times are GMT -5. The time now is 12:42 PM.