• 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: "Bit Twiddler" <email@hidden>
  • Date: Thu, 20 Jul 2006 18:34:12 -0400

On 7/20/06, Sean McBride <email@hidden> wrote:

On 2006-07-20 17:25, Bit Twiddler said:

>I would like to restrict the files displayed in an NSOpenPanel to only
>Mach-O binary files (com.apple.mach-o-binary), but I can't figure out how
to
>do it.  If anyone has any pointers, I would greatly appreciate the help.

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).

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?

Thanks,
BT
_______________________________________________
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: NSOpenPanel and executable files
      • From: "Sean McBride" <email@hidden>
References: 
 >NSOpenPanel and executable files (From: "Bit Twiddler" <email@hidden>)
 >Re: NSOpenPanel and executable files (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: NSBrowserCell not extensible; need sample using NSButtonCell
  • Next by Date: Re: NSOpenPanel and executable files
  • Previous by thread: Re: NSOpenPanel and executable files
  • Next by thread: Re: NSOpenPanel and executable files
  • Index(es):
    • Date
    • Thread