Skip navigation.
 
mlRe: NSOpenPanel and executable files
FROM : Sean McBride
DATE : Fri Jul 21 17:52:41 2006

On 2006-07-20 18:34, Bit Twiddler said:

>> NSOpenPanel does not support filtering by UTI, but Navigation Services
>> does, and you can use it from a Cocoa app.  See
>> NavDialogSetFilterTypeIdentifiers().

>
>Thanks Sean - this appears to be exactly what I need.  Unfortunately I have
>two followup questions:
>
>1) I can't seem to find NavDialogSetFilterTypeIdentifiers anywhere in the
>Developer Documentation that got installed along with Xcode.  Should I be
>able to find it, or do I need to install extra documentation? (and yes, I
>realize that the docs are available online, I just wondered why I can't seem
>to find it locally).


It appears in mine.  Are you using the newest OS and newest Xcode?

>2) I am a new to Apple development in general so I am not sure how I go
>about calling, what appears to be a Carbon API from a Cocoa app.  Do I need
>to write the code that uses Nav Services in C or C++, instead of Obj-C?


Well, if you're not already familiar with Nav Serv, Corbin's suggestion
is better: use NSOpenPanel and do custom filtering with
panel:shouldShowFilename and use the APIs in LSInfo.h and UTType.h to
implement it.

--
____________________________________________________________
Sean McBride, B. Eng                <email_removed>
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

Related mailsAuthorDate
mlNSOpenPanel and executable files Bit Twiddler Jul 20, 23:25
mlRe: NSOpenPanel and executable files Sean McBride Jul 20, 23:50
mlRe: NSOpenPanel and executable files Bit Twiddler Jul 21, 00:34
mlRe: NSOpenPanel and executable files Corbin Dunn Jul 21, 00:37
mlRe: NSOpenPanel and executable files Sean McBride Jul 21, 17:52