• 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: recognizing NSOKButton on custom sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recognizing NSOKButton on custom sheet


  • Subject: Re: recognizing NSOKButton on custom sheet
  • From: Prachi Gauriar <email@hidden>
  • Date: Fri, 4 Feb 2005 19:16:37 -0500


On Feb 4, 2005, at 6:54 PM, Andrew Wilson wrote:

- (IBAction)closeNewPageSheet:(id)sender
{
	[NSApp endSheet:newPageSheet];
	if (sender == newPageOKButton) {
		NSLog(@"OK button");
	}

}

The problem is that you're ending the sheet without a return code. How about using [NSApp endSheet:newPageSheet returnCode:[sender tag]] or something like that?


-Prachi

_______________________________________________
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: 
 >recognizing NSOKButton on custom sheet (From: Andrew Wilson <email@hidden>)

  • Prev by Date: recognizing NSOKButton on custom sheet
  • Next by Date: getting NSPoints from a circle
  • Previous by thread: recognizing NSOKButton on custom sheet
  • Next by thread: getting NSPoints from a circle
  • Index(es):
    • Date
    • Thread