私はあなたが主にplistを読み書きする方法について疑問に思っていると思います。これを行う例を次に示します。
NSString* filename = @"/var/mobile/Library/Preferences/com.apple.assistant.plist";
NSMutableDictionary* prefs = [[NSMutableDictionary alloc] initWithContentsOfFile: filename];
NSString* hostnamePref = (NSString*)[prefs valueForKey: @"Hostname"];
NSLog(@"current hostname is %@", hostnamePref);
[prefs setValue: @"Some New Value Here" forKey: @"Hostname"];
[prefs writeToFile: filename atomically: YES];
[prefs release]; // not needed if you use Automatic Reference Counting in your project
編集:辞書(plist)が実際に辞書の辞書である場合は、次のようなものを使用できます。
NSMutableDictionary* prefs = [[NSMutableDictionary alloc] initWithContentsOfFile: filename];
NSString* nestedKeyname = @"124-37HGSH-CF12-67TY";
NSMutableDictionary* nestedPrefs = (NSMutableDictionary*)[prefs valueForKey: nestedKeyname];
NSString* hostnamePref = (NSString*)[nestedPrefs valueForKey: @"Hostname"];
NSLog(@"current hostname is %@", hostnamePref);
[nestedPrefs setValue: @"Some New Value Here" forKey: @"Hostname"];
[prefs setValue: nestedPrefs forKey: nestedKeyname];
上記のコードは、ユーザーモバイルが読み取りと書き込みの権限を持っているすべてのパスで機能するはずです。