• 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: Nick Zitzmann <email@hidden>
  • Date: Fri, 17 Dec 2004 16:07:57 -0700


On Dec 17, 2004, at 3:52 PM, Mark Dawson wrote:

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

The order of the parameters is incorrect. Try this instead:

NSBeginAlertSheet(error, nil, nil, nil, [self window], self, nil, nil, nil, @"your message here");

If you don't want to display a message, then just make the last parameter an empty string (@"").

Nick Zitzmann
<http://www.chronosnet.com/>

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

  • Prev by Date: Solved: Running without a dock icon - weird keyDown problem
  • Next by Date: Re: applescript and objective c
  • Previous by thread: Alert sheet question
  • Next by thread: Re: Alert sheet question
  • Index(es):
    • Date
    • Thread