FROM : Corbin Dunn
DATE : Fri Jul 21 00:37:17 2006
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
DATE : Fri Jul 21 00:37:17 2006
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
| Related mails | Author | Date |
|---|---|---|
| Bit Twiddler | Jul 20, 23:25 | |
| Sean McBride | Jul 20, 23:50 | |
| Bit Twiddler | Jul 21, 00:34 | |
| Corbin Dunn | Jul 21, 00:37 | |
| Sean McBride | Jul 21, 17:52 |






Cocoa mail archive

