• 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: Alert sheet question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alert sheet question


  • Subject: Re: Alert sheet question
  • From: Henry Maddocks <email@hidden>
  • Date: Sat, 18 Dec 2004 13:49:15 +1300

I can never get [self window] to work. Try [self windowForSheet] or create an outlet in your class for the window and connect it up in IB and use that.


On 18/12/2004, at 1:07 PM, mark wrote:

Changing what you suggested does not get rid of the warning; however, the
sheet DOES come up. The "OK" button doesn't seem to be active, though--the
sheet won't dismiss. In fact, I can click on my window and another error
dialog comes up (in front of the 1st)…


So, I thought I didn't need a context or call back, as "OK" dismisses the
dialog. However, do I need something, as the dialog not only doesn't
dismiss, but isn't modal within the window?


Thanks!

ps: my code now reads
NSBeginAlertSheet(error, NULL /* use OK button */,
   NULL, NULL,    NULL,    // no other buttons
   [self window],        // get controller's window
   self,            // we'll be our own delegate (should be NULL?)
   NULL, NULL, @""    // NULL to rest of parameters,
   // as just having user press OK
 );

_______________________________________________ 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
References: 
 >Re: Alert sheet question (From: mark <email@hidden>)

  • Prev by Date: Re: Prevent default alert when quitting app w/ many unsaved docs
  • Next by Date: Re: Alert sheet question
  • Previous by thread: Re: Alert sheet question
  • Next by thread: Re: Alert sheet question
  • Index(es):
    • Date
    • Thread