• 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
Choosing Files Based Upon Type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Choosing Files Based Upon Type


  • Subject: Choosing Files Based Upon Type
  • From: Joe Muscara <email@hidden>
  • Date: Mon, 18 Jun 2001 14:12:58 -0500

On Thursday, June 14, 2001, at 02:17 PM, Ali Ozer wrote:

But rest assured that Cocoa is constantly being enhanced
(for instance, in 10.0 open panel can now choose files based on types in
addition to extensions).

While I did find this mentioned in the introductory text for the NSOpenPanel help page, I haven't been able to figure out how to actually implement it. All I could think of trying was

NSArray *fileTypes = [NSArray arrayWithObject:@"TEXT"];

but that resulted in the obvious - only allowing selection of items whose extension was "TEXT."

How is this done? And, am I reading the original post correctly that this has been available since 10.0?

Thanks!
Joe


  • Follow-Ups:
    • Re: Choosing Files Based Upon Type
      • From: Richard Schreyer <email@hidden>
    • Re: Choosing Files Based Upon Type
      • From: "David W. Halliday" <email@hidden>
    • Re: Choosing Files Based Upon Type
      • From: Ali Ozer <email@hidden>
  • Prev by Date: NSOutlineView sample?
  • Next by Date: Re: Cocoa/EOF for non-enterprise apps Re: proof of cocoa
  • Previous by thread: Re: NSOutlineView sample?
  • Next by thread: Re: Choosing Files Based Upon Type
  • Index(es):
    • Date
    • Thread