Re: File UTI on 10.6.8
Re: File UTI on 10.6.8
- Subject: Re: File UTI on 10.6.8
- From: Quincey Morris <email@hidden>
- Date: Tue, 03 Jan 2012 10:14:43 -0800
On Jan 3, 2012, at 02:11 , Martin Hewitson wrote:
> Actually, it seems that the NSWorkspace method behaves differently, (assuming I'm using it correctly):
>
> [[NSWorkspace sharedWorkspace] filenameExtension:@"pdf" isValidForType:(NSString *)kUTTypeText]
>
> returns YES
>
> whereas the UTTypeConformsTo() solution returns NO.
One thing to consider is that your UTType… approach uses the *preferred* UTI for '.pdf', which may indeed not conform to the text type. But there could be another '.pdf'-based UTI defined on your system that does conform. AFAICT the standard UTIs don't contain a text-conforming UTI for '.pdf', but it's certainly possibly that some app has added the association.
_______________________________________________
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