Re: NSSavePanel delegate Methods called by NSOpenPanel
Re: NSSavePanel delegate Methods called by NSOpenPanel
- Subject: Re: NSSavePanel delegate Methods called by NSOpenPanel
- From: Daniel Demiss <email@hidden>
- Date: Fri, 10 Jul 2009 18:53:38 +0200
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 (email@hidden)
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:
This email sent to email@hidden