Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOpenPanel setCanChooseDirectories behavior



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.