• 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: NSSharingService with Animated GIFs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSharingService with Animated GIFs?


  • Subject: Re: NSSharingService with Animated GIFs?
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Sat, 17 May 2014 00:57:14 -0500

On Sat, May 17, 2014 at 12:41 AM, Charles Carver <email@hidden>wrote:

> NSURL *saveUrl = [NSURL URLWithString:[NSString stringWithFormat:@"file://%@",
> NSTemporaryDirectory()]];
> saveUrl = [saveUrl URLByAppendingPathComponent:fileName];
>

You shouldn't construct file URLs like this. There has been an approved API
for do this for ages. Use:

NSURL *saveURL = [NSURL  fileURLWithPathComponents:@[NSTemporaryDirectory(),
fileName]];
_______________________________________________

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


References: 
 >Re: NSSharingService with Animated GIFs? (From: Charles Carver <email@hidden>)
 >Re: NSSharingService with Animated GIFs? (From: Ken Thomases <email@hidden>)
 >Re: NSSharingService with Animated GIFs? (From: Charles Carver <email@hidden>)

  • Prev by Date: Re: debugging unrecognized selector
  • Next by Date: Re: NSSharingService with Animated GIFs?
  • Previous by thread: Re: NSSharingService with Animated GIFs?
  • Next by thread: Re: NSSharingService with Animated GIFs?
  • Index(es):
    • Date
    • Thread