Re: initFileURLWithPath run on emulator, not run on device
Re: initFileURLWithPath run on emulator, not run on device
- Subject: Re: initFileURLWithPath run on emulator, not run on device
- From: "Stephen J. Butler" <email@hidden>
- Date: Mon, 30 Jan 2012 12:50:12 -0600
On Mon, Jan 30, 2012 at 9:57 AM, Riccardo Barbetti
<email@hidden> wrote:
> I have a problem, after that I had write and test code on simulator, today I have work on device.
I'm skeptical because...
> In my program I save my NSArray:
>
>
> NSArray *paths = NSSearchPathForDirectoriesInDomains(NSSharedPublicDirectory, NSUserDomainMask, YES);
>
> NSString *documentsDirectory = [paths objectAtIndex:0];
> NSURL *URLDirectory = [[NSURL alloc] initFileURLWithPath:documentsDirectory];
>
> BOOL result = [anArray writeToURL:URLDirectory atomically:YES];
... nowhere in this code do you add a filename to write to.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden