• 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
NSBeginAlertSheet (II)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBeginAlertSheet (II)


  • Subject: NSBeginAlertSheet (II)
  • From: Mark Dawson <email@hidden>
  • Date: Mon, 20 Dec 2004 15:02:22 -0800

I'm having even more problems using NSBeginAlertSheet. I don't get any sheet coming up. If I use NSAlert, everything works; however, I do need to run from 10.2, so that isn't a general solution. Note that I've tried using and not using a did-dismiss selector (empty). Further note: the routine is a category of NSWindowController (I don't seem to be able to use windowForSheet, as I get an error stating that it may not be part of NSWindowController)…

What could I be doing wrong?

NSBeginAlertSheet(errorMsg, nil, // use OK button
nil, nil, // no other buttons
[self window], // get controller's window
self, // we'll be our own delegate
nil, // no did-end selector
nil, // no did-dismiss selector
// @selector(emptyAlertDidEnd:returnCode:contextInfo:), // empty did-dismiss selector needed
nil, // no context info
nil, // no extra message
nil // no parameters in message
);
 _______________________________________________
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

  • Follow-Ups:
    • Re: NSBeginAlertSheet (II)
      • From: Andrew Farmer <email@hidden>
    • Re: NSBeginAlertSheet (II)
      • From: Matt Jaffa <email@hidden>
  • Prev by Date: Re: Passing arguments to threads?
  • Next by Date: Re: Renaming files?
  • Previous by thread: Re: Passing arguments to threads?
  • Next by thread: Re: NSBeginAlertSheet (II)
  • Index(es):
    • Date
    • Thread