Re: Filtering files in NSOpenPanel that NSAppleScript can run
Re: Filtering files in NSOpenPanel that NSAppleScript can run
- Subject: Re: Filtering files in NSOpenPanel that NSAppleScript can run
- From: "Sean McBride" <email@hidden>
- Date: Fri, 17 Nov 2006 11:19:55 -0500
- Organization: Rogue Research
On 2006-11-17 07:52, Adam R. Maxwell said:
>I've never used Nav Services, and since my code was actually
>superseded by other changes, I don't recall exactly what I did :).
>Elsewhere I've used
>
>NSDictionary *dict = [(id)UTTypeCopyDeclaration((CFStringRef)aType)
>autorelease];
>NSArray *types = [[dict objectForKey:(id)kUTTypeTagSpecificationKey]
>objectForKey:(id)kUTTagClassFilenameExtension];
Thanks, I guess I'll do something similar and file a bug suggesting an
[NSAppleScript scriptFileTypes].
>to extract path extensions from a UTI. You might be able to use
>something similar? I've also created some NSWorkspace and NSString
>category methods for getting the UTI of a URL and comparing them. As
>an aside, do the UTType... functions show up for you in Xcode's
>search? I can only find them in the header.
Likewise. Most of those APIs were introduced in 10.3, you don't really
expect documentation so soon do you? :) But seriously, do file a bug,
I've seen many APIs missing in the Xcode docs.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden