• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: initFileURLWithPath run on emulator, not run on device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: initFileURLWithPath run on emulator, not run on device
      • From: David Duncan <email@hidden>
References: 
 >initFileURLWithPath run on emulator, not run on device (From: Riccardo Barbetti <email@hidden>)

  • Prev by Date: initFileURLWithPath run on emulator, not run on device
  • Next by Date: Re: initFileURLWithPath run on emulator, not run on device
  • Previous by thread: initFileURLWithPath run on emulator, not run on device
  • Next by thread: Re: initFileURLWithPath run on emulator, not run on device
  • Index(es):
    • Date
    • Thread