• 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: NSSavePanel delegate Methods called by NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSSavePanel delegate Methods called by NSOpenPanel (From: Daniel Demiss <email@hidden>)
 >Re: NSSavePanel delegate Methods called by NSOpenPanel (From: Steve Christensen <email@hidden>)
 >Re: NSSavePanel delegate Methods called by NSOpenPanel (From: Daniel Demiss <email@hidden>)

  • Prev by Date: Re: NSSavePanel delegate Methods called by NSOpenPanel
  • Next by Date: Re: Cocoa Frontend to SDL App
  • Previous by thread: Re: NSSavePanel delegate Methods called by NSOpenPanel
  • Next by thread: how to hide/display titlebar?
  • Index(es):
    • Date
    • Thread