• 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: Another app's UTI can break your app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Another app's UTI can break your app
      • From: Seth Willits <email@hidden>
References: 
 >Another app's UTI can break your app (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: CMMotionManager valid data?
  • Next by Date: document inexplicably becomes locked and fails to save under sandboxing
  • Previous by thread: Re: Another app's UTI can break your app
  • Next by thread: Re: Another app's UTI can break your app
  • Index(es):
    • Date
    • Thread