• 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: Corbin Dunn <email@hidden>
  • Date: Thu, 20 Jul 2006 15:37:17 -0700


On Jul 20, 2006, at 2:50 PM, Sean McBride 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,

No; but you can do it manually using NSOpenPanel and a delegate. Implement the delegate method panel:shouldShowFilename: and check the UTI for the filename.


--corbin
_______________________________________________
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>)

  • Prev by Date: Re: NSOpenPanel and executable files
  • Next by Date: strpos-type method
  • Previous by thread: Re: NSOpenPanel and executable files
  • Next by thread: Distributed Objects question
  • Index(es):
    • Date
    • Thread