• 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: Filtering files in NSOpenPanel that NSAppleScript can run
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Filtering files in NSOpenPanel that NSAppleScript can run
      • From: Jim Correia <email@hidden>
References: 
 >Filtering files in NSOpenPanel that NSAppleScript can run (From: "Sean McBride" <email@hidden>)
 >Re: Filtering files in NSOpenPanel that NSAppleScript can run (From: "Adam R. Maxwell" <email@hidden>)
 >Re: Filtering files in NSOpenPanel that NSAppleScript can run (From: "Sean McBride" <email@hidden>)
 >Re: Filtering files in NSOpenPanel that NSAppleScript can run (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Re: More NSDictionary to CFDictionary
  • Next by Date: Re: Filtering files in NSOpenPanel that NSAppleScript can run
  • Previous by thread: Re: Filtering files in NSOpenPanel that NSAppleScript can run
  • Next by thread: Re: Filtering files in NSOpenPanel that NSAppleScript can run
  • Index(es):
    • Date
    • Thread