Re: Another app's UTI can break your app
Re: Another app's UTI can break your app
- Subject: Re: Another app's UTI can break your app
- From: Uli Kusterer <email@hidden>
- Date: Wed, 11 Jun 2014 05:22:11 +0200
On 10 Jun 2014, at 21:21, Seth Willits <email@hidden> wrote:
> - (NSString *)typeForContentsOfURL:(NSURL *)url error:(NSError **)outError;
> {
> if ([url.pathExtension.lowercaseString isEqual:@"sql"]) {
> return @"my.uti.type";
> }
>
> return [super typeForContentsOfURL:url error:outError];
> }
I suppose that this works should be mentioned in your bug. It means Apple could easily fix it by making the default implementation take a first stab at looking up the UTI from your Info.plist instead of from Launch Services.
Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://zathras.de
_______________________________________________
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