• 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: modal alert sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modal alert sheets


  • Subject: Re: modal alert sheets
  • From: Martin Weil <email@hidden>
  • Date: Mon, 12 Aug 2002 21:53:36 +0200

This might just be a
Jag bug, but is there an easier way to get this modal
alert sheet up?

NSBeginAlertSheet(@"Warning", @"Quit", @"Cancel",
nil, preferencesWindow, self, NULL,
@selector(endAlertSheet: returnCode: contextInfo:),
NULL,
@"Do you really want to quit?\nAll unsaved changes will be lost.");

Just an example of my own app.
'preferencesWindow' is the window lying behind the sheet.


See Cocoa Developer Documentation > User Interface Elements > Windows and Panels > Dialog and Special Panels for more Information.

Hope this helps!


Regards,
Martin
--
http://www.mweil.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >modal alert sheets (From: Robert Vasvari <email@hidden>)

  • Prev by Date: Transparent Panel
  • Next by Date: Re: [newbie]: UI questions (using NSSlider & NSTextField with delegation)
  • Previous by thread: modal alert sheets
  • Next by thread: Re: modal alert sheets
  • Index(es):
    • Date
    • Thread