• 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
NSOpenPanel & NSFileTypeForHFSTypeCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOpenPanel & NSFileTypeForHFSTypeCode


  • Subject: NSOpenPanel & NSFileTypeForHFSTypeCode
  • From: Chris Heimark <email@hidden>
  • Date: Tue, 9 Oct 2007 15:11:52 -0400

I see in docs for NSOpenPanel and NSSavePanel that it is possible to determine filetypes that will be shown/allowed in NSOpenPanel and NSSavePanel via setFileTypes method.

And furthermore, one can use these two functions to take selectivity down to the HFS+ OSType file level.

	NSString *NSFileTypeForHFSTypeCode(OSType hfsTypeCode);
	OSType NSHFSTypeCodeFromFileType(NSString *fileType);

My question is this: Where are the OSType's defined for files/ filesystems? And is it possible to use setFileTypes to only allow the selection of a volume?

I did find this from November 2002. Is this really still true?

No, there is no way to do this at this time.


On Oct 31, 2003, at 7:55 AM, Lance Drake wrote:

> Hi Cocoa Folks,
>
> Is it possible to configure the NSOpenPanel dialog to only allow
> selection of a 'Volume' and not a directory or file? I looked at the
> NSOpenPanel header and it does not appear so - but then, I've been
> under-informed so many times in the past, I thought I should ask.
>
> Evidently, the Carbon NavServices lib supports a 'NavChooseVolume'
> function. Is this the only one that's available?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSOpenPanel & NSFileTypeForHFSTypeCode
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Drag an drop in a custom NSView
  • Next by Date: Re: Drag an drop in a custom NSView
  • Previous by thread: Re: Drag an drop in a custom NSView
  • Next by thread: Re: NSOpenPanel & NSFileTypeForHFSTypeCode
  • Index(es):
    • Date
    • Thread