Am 10.07.2009 um 18:32 schrieb Daniel Demiss:

Or is there another way I haven't seen yet?

Well it seems that I've found the answer to my question.

"panel:isValidFilename:" is called exactly once (and not
multiple times as I suspected when I wrote it) when the
"open" button is clicked.

So changing
- (BOOL)panel:(id)sender isValidFilename:(NSString *)filename
{
   return [self isValidPath:filename shouldPresentError:NO];
}

to

- (BOOL)panel:(id)sender isValidFilename:(NSString *)filename
{
   return [self isValidPath:filename shouldPresentError:YES];
}

did the trick...
Stupid thing, not to see!

Kind regards

Daniel
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to