• 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: NSOpenPanel setCanChooseDirectories behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel setCanChooseDirectories behavior


  • Subject: Re: NSOpenPanel setCanChooseDirectories behavior
  • From: Christoph Gerdes <email@hidden>
  • Date: Mon, 01 May 2006 22:39:36 +0200

I see your point but shouldn't there be an option like "Show Package Contents" for NSOpenPanel or something like setCanChooseBundles or a FileFilter? Right now users cannot navigate to some files they want to open and, worse, they are allowed to open files (directories) which weren't meant to be opened.

Christoph

Mike Abdullah wrote:
I would have thought it is intended, since there are many directories/folders/bundles (whatever you want to call them) in OS X that from the user's perspective are files.

Mike.

On 30 Apr 2006, at 11:18AM0, Christoph Gerdes wrote:

Hello,
I'm a bit puzzled by the behavior of setCanChooseDirectories of the NSOpenPanel.
If I open a panel like this:


NSOpenPanel panel = NSOpenPanel.openPanel();
panel.setCanChooseDirectories(false);
panel.setCanChooseFiles(true);
NSArray fileTypes = new NSArray(new String[]{"xyz"});
panel.beginSheetForDirectory(null,
null,
fileTypes,
window,
this,
new NSSelector("panelDidEnd", new Class[] {NSOpenPanel.class, int.class, Object.class}),
null);



then it is not possible to choose directories except their names end with ".xyz". For directories with ".xyz" at the end of their names the OK button is enabled. Is this behavior intended or is it a bug?


Thanks,
Christoph
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSOpenPanel setCanChooseDirectories behavior
      • From: Ryan Britton <email@hidden>
  • Prev by Date: Re: Versioning and CoreData
  • Next by Date: Re: Interesting Hint for Media Browser
  • Previous by thread: Re: Getting notified on tab-switch in Safari?
  • Next by thread: Re: NSOpenPanel setCanChooseDirectories behavior
  • Index(es):
    • Date
    • Thread