• 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: Alerts from a Preference Pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alerts from a Preference Pane


  • Subject: Re: Alerts from a Preference Pane
  • From: Stephane Sudre <email@hidden>
  • Date: Fri, 5 Dec 2003 17:20:09 +0100

NSBeginCriticalAlertSheet(tAlertTitle,
nil,
nil,
nil,
[aWidgetInMyPrefPane window],
self,
@selector(myAlertSheetDidEnd:returnCode:contextInfo:),
nil, NULL,
tAlertString);



On Friday, December 5, 2003, at 04:58 PM, Huyler, Christopher M wrote:

I want to display alerts from my preference pane but I'm having trouble
getting them to appear as a sheet instead of a new window. How can I
obtain the NSWindow object for System Preferences from my
NSPreferencePane subclass in order to use
beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:

Boy that's a mouthful...This is probably easier than I am making it.

--
Christopher Huyler
Computer Associates Intl.
mailto:email@hidden
_______________________________________________
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.
_______________________________________________
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: 
 >Alerts from a Preference Pane (From: "Huyler, Christopher M" <email@hidden>)

  • Prev by Date: windows title bar at left
  • Next by Date: Re: How to display alert box in COCOA
  • Previous by thread: Alerts from a Preference Pane
  • Next by thread: windows title bar at left
  • Index(es):
    • Date
    • Thread