Re: How to choose file without extension in NSOpenPanel
Re: How to choose file without extension in NSOpenPanel
- Subject: Re: How to choose file without extension in NSOpenPanel
- From: Joe Chan <email@hidden>
- Date: Sat, 19 Jan 2002 13:48:24 -0500
It is so typically the case that right after I fired off a
question I found the answer. I can use
NSFileTypeForHFSTypeCode() to get the equivalent "extension" for
a type code to put into the file type array for NSOpenPanel.
Sorry for stupid question.
I have one simple question about NSOpenPanel: how do I choose
files without extension (or ignoring the extension), but has a
four char type code set? What I want to do is to choose files
with type code 'TEXT', regardless of it's extension (from no
extension to .c, .l, .hqx, .plist, whatever). NSOpenPanel only
lets me specify only a list of file extensions. One way I can
do it is to use Nav Services in Carbon, but I'd rather not.
-----------
Joe Chan
email@hidden
http://www.firstian.com