Re: recognizing NSOKButton on custom sheet
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