Re: NSOpenPanel - disabling the "Open" button for certain folders.

2009-02-02 Thread Ron Aldrich
On Feb 2, 2009, at 3:47 PM, Corbin Dunn wrote: On Feb 2, 2009, at 11:48 AM, Mike Abdullah wrote: Sadly I'm pretty certain there's no API to disable the button. But you can fairly easily implement the -panel:isValidFilename: delegate method and return NO to stop the user opening a folder.

Re: NSOpenPanel - disabling the "Open" button for certain folders.

2009-02-02 Thread Corbin Dunn
On Feb 2, 2009, at 11:48 AM, Mike Abdullah wrote: Sadly I'm pretty certain there's no API to disable the button. But you can fairly easily implement the -panel:isValidFilename: delegate method and return NO to stop the user opening a folder. Calling NSBeep() at the same time wouldn't be am

Re: NSOpenPanel - disabling the "Open" button for certain folders.

2009-02-02 Thread Mike Abdullah
Sadly I'm pretty certain there's no API to disable the button. But you can fairly easily implement the -panel:isValidFilename: delegate method and return NO to stop the user opening a folder. Calling NSBeep() at the same time wouldn't be amiss I imagine. Mike. On 30 Jan 2009, at 01:18, Ron

NSOpenPanel - disabling the "Open" button for certain folders.

2009-01-29 Thread Ron Aldrich
Hello, I'm trying to filter the contents of a standard NSOpenPanel dialog such that only certain folders can be opened. If I implement - (BOOL) panel:(id)sender shouldShowFilename:(NSString *) fileName; such that it returns true for the folders that I want to allow, and false for others,