Re: Treating bundles like directories in NSOpenPanel?
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.