• 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: How to choose file without extension in NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to choose file without extension in NSOpenPanel
      • From: "David W. Halliday" <email@hidden>
  • Prev by Date: How to choose file without extension in NSOpenPanel
  • Next by Date: Re: NSOutlineView/NSTableView sorting?
  • Previous by thread: How to choose file without extension in NSOpenPanel
  • Next by thread: Re: How to choose file without extension in NSOpenPanel
  • Index(es):
    • Date
    • Thread