Re: Returns from a sheet
Re: Returns from a sheet
- Subject: Re: Returns from a sheet
- From: Esteban Uribe <email@hidden>
- Date: Fri, 3 May 2002 10:57:40 -0700 (PDT)
You can use [sender isEqualToString:buttonString] on the sender to find out if its title is OK or Cancel, this is supposed to be faster than calling [sender isEqualTo:okButton]; where okButton is an outlet to the OK button.
On Friday, May 03, 2002, at 05:05PM, James Pengra <email@hidden> wrote:
>
What is the best way to differentiate between an 'OK' button and
>
a 'Cancel' button when closing a sheet? Should I connect the buttons
>
to different exit procedures or is there some way to use the
>
'returnCode' variable to distinguish between the two?
>
>
Thanks, Jim
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.