• 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: Treating bundles like directories in NSOpenPanel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Treating bundles like directories in NSOpenPanel?


  • Subject: Re: Treating bundles like directories in NSOpenPanel?
  • From: Scott Anguish <email@hidden>
  • Date: Sun, 27 Apr 2003 12:29:06 -0400

On Sunday, April 27, 2003, at 09:40 AM, Jason Alexander wrote:

In my application, I'd like to be able to navigate inside bundles with suffix .key (Keynote documents) like ordinary directories. I cannot find any documentation explaining how to configure NSOpenPanel to allow this. Does anyone have a solution?


You need to look at the superclass for NSOpenPanel, NSSavePanel

- (BOOL)treatsFilePackagesAsDirectories
Returns whether the receiver displays file packages to the user as directories.

- (void)setTreatsFilePackagesAsDirectories:(BOOL)flag
Sets the receiver's behavior for displaying file packages (for example, MyApp.app) to the user. If flag is YES, the user is shown files and subdirectories within a file package. If NO, the NSSavePanel shows each file package as a file, thereby giving no indication that it is a directory.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Treating bundles like directories in NSOpenPanel? (From: Jason Alexander <email@hidden>)

  • Prev by Date: Re: converting text input in any encoding to unicode
  • Next by Date: What does +[NSBundle bundleWithIdentifier:] get me?
  • Previous by thread: Treating bundles like directories in NSOpenPanel?
  • Next by thread: What does +[NSBundle bundleWithIdentifier:] get me?
  • Index(es):
    • Date
    • Thread