• 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: NSOpenPanel and executable files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel and executable files


  • Subject: Re: NSOpenPanel and executable files
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 21 Jul 2006 11:52:41 -0400
  • Organization: Rogue Research

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@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

References: 
 >NSOpenPanel and executable files (From: "Bit Twiddler" <email@hidden>)
 >Re: NSOpenPanel and executable files (From: "Sean McBride" <email@hidden>)
 >Re: NSOpenPanel and executable files (From: "Bit Twiddler" <email@hidden>)

  • Prev by Date: Re: NSSearchField: sendsSearchStringImmediately is not PPC & i386 compatible?
  • Next by Date: Converting file names to C strings (was Re: writing huge C-array to a file)
  • Previous by thread: Re: NSOpenPanel and executable files
  • Next by thread: Re: NSOpenPanel and executable files
  • Index(es):
    • Date
    • Thread