• 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
Modeless panel from NSGetAlertPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modeless panel from NSGetAlertPanel


  • Subject: Modeless panel from NSGetAlertPanel
  • From: Dan Bernstein <email@hidden>
  • Date: Sat, 2 Oct 2004 23:16:29 +0200

I need to display the same alert sometimes as a sheet and sometimes as
a modeless panel. I thought it would be nice if I could do both using
NSGetAlertPanel, so that I don't have to create a nib for it and so
on. Then the sheet case is straightforward using -[NSApplication
beginSheet:...], but how can I use the same panel as a modeless panel?
The buttons' target is an NSAlert (in 10.3, I don't know what it is in
10.2) which I don't even own.

Is there a clever, yet clean way to accomplish this? Any other
solution short of creating my own nib for this?

Thanks in advance,
-- Dan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: [NEWBIE]: Dynamically loading NSViews
  • Next by Date: tinting an NSImage
  • Previous by thread: Re: Any news about Cocoa Java ?
  • Next by thread: tinting an NSImage
  • Index(es):
    • Date
    • Thread