Re: Returns from a sheet
Re: Returns from a sheet
- Subject: Re: Returns from a sheet
- From: Ondra Cada <email@hidden>
- Date: Fri, 3 May 2002 21:19:25 +0200
On Friday, May 3, 2002, at 07:57 , Esteban Uribe wrote:
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.
Does not soud as a good idea to me. First, you have to be pretty careful
not to break localizability. Second, why not just plain
if (sender==okButton) ...
? It's the quickest, and safe and flexible as hell.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.