Strange NSSearchPathForDirectoriesInDomains error in Snow Leopard
Strange NSSearchPathForDirectoriesInDomains error in Snow Leopard
- Subject: Strange NSSearchPathForDirectoriesInDomains error in Snow Leopard
- From: Sam Krishna <email@hidden>
- Date: Tue, 15 Sep 2009 17:40:39 -0400
Hi all,
I've only been able to reproduce this error on the iPhone Simulator
under Snow Leopard, but I just wanted to check with the group before
filing a RADAR.
Basically, I'm getting the <App Name>/Documents directory using
perfectly working code on the Leopard side. But when I run the
following code under the Simulator + Snow Leopard, I get a strange
result, which is a missing app name.
Here's the code:
- (NSString *)savedFilePath
{
NSArray *paths = NSSearchPathForDirectoriesInDomains
(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *filePath = [documentsDirectory stringByAppendingString:@"/
locations.archive"];
return filePath;
}
Under Leopard+Simulator filePath returns as:
/Volumes/elyon/achilles/Library/Application Support/iPhone Simulator/
User/Applications/1DE026FD-7BCA-4D9E-AA9F-74AFDB203BFD/GeoArchiving/
Documents/locations.archive
Under Snow Leopard+Simulator filePath returns as:
/Volumes/elyon/achilles/Library/Application Support/iPhone Simulator/
User/Applications/1DE026FD-7BCA-4D9E-AA9F-74AFDB203BFD/Documents/
locations.archive
(Yes, I'm deliberately using the same iPhone App Simulator GUID for
this email).
Could someone else verify this before I go off and write a RADAR?
Here's the app codebase:
Attachment:
GeoArchiving.zip
Description: Zip archive
Thanks so much!
PS: I'm running this on 10.6.1 with the 3.1 SDK under Xcode 3.2 on a
late 2007 iMac (Core 2 Extreme model).
Leopard was 10.5.8 with 3.1 SDK and Xcode 3.1.4.
Namaste + Live Playfully,
Sam
-----
If he listens in faith,
finding no fault, a man is free
and will attain the cherished worlds
of those who act in virtue.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden