Re: NSSharingService with Animated GIFs?
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