• 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
Using alerts with Preference Panes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using alerts with Preference Panes


  • Subject: Using alerts with Preference Panes
  • From: "John Farmer" <email@hidden>
  • Date: Thu, 8 May 2003 09:15:54 -0700

I'm creating a preference pane, and I need an alert to show up if user
information was incorrectly supplied. I tried using the NSBeginAlertSheet
with my sample application and it worked fine, but when I moved the code
over to my preference pane, the compiler did not seem to recognize my
NSWindow (_window or a new outlet for window). My function call looks like
this:

NSBeginAlertSheet (
msg1,
@"OK",
nil,
nil,
[self _window], // or [self window]
self, // Modal deligate
null, // did-end selector
null, // did-dismiss selector
sender, // context info
msg2, // optional message
nil); // additional params

Any help would be very appricaited.

Thanks,

John Farmer
_______________________________________________
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.

  • Follow-Ups:
    • Re: Using alerts with Preference Panes
      • From: Andreas Schempp <email@hidden>
  • Prev by Date: Re: Song dragged from iTunes
  • Next by Date: NetSocket listen
  • Previous by thread: Re: Force display of spinning busy cursor?
  • Next by thread: Re: Using alerts with Preference Panes
  • Index(es):
    • Date
    • Thread