• 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
Custom modal panel, like NSSavePanel/NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom modal panel, like NSSavePanel/NSOpenPanel


  • Subject: Custom modal panel, like NSSavePanel/NSOpenPanel
  • From: Brad Peterson <email@hidden>
  • Date: Wed, 18 Mar 2009 13:26:38 -0700 (PDT)

Hi all,

I would like to implement a password prompt panel class similar to NSSavePanel/NSOpenPanel, which can be shown without having to implement didEndSelectors and delegates each time.

That is, I want a class that displays a password prompt, which I can show using syntax like:


	NSString *password = [passwordPromptPanel passwordPromptModalForWindow: someWindow];

in a fashion very similar to the way I'm used to using NSOpenPanel now.

Is this possible? I assume it is, but I sure am stumped as to how to proceed.

I tried to use something similar to the code posted by Alex Karahalios at http://www.cocoadev.com/index.pl?DisplayingSheets. This code worked great for displaying the sheet, but of course, without any of the selectors defined, I couldn't make the sheet go away. :)

Any help would be greatly appreciated.

Thanks,

B



_______________________________________________

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

  • Follow-Ups:
    • Re: Custom modal panel, like NSSavePanel/NSOpenPanel
      • From: Michael Ash <email@hidden>
  • Prev by Date: Re: Termination Running Applications ...
  • Next by Date: Re: Limiting number of characters per line in a NSTextView
  • Previous by thread: draw NSButtonCell or combo cell only when selected?
  • Next by thread: Re: Custom modal panel, like NSSavePanel/NSOpenPanel
  • Index(es):
    • Date
    • Thread