NSTextField Question
NSTextField Question
- Subject: NSTextField Question
- From: Tom Gray <email@hidden>
- Date: Tue, 26 Nov 2002 23:33:43 -0500
I am using the delegate method
- (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText
*)fieldEditor
to validate the response in an NSTextField.
On an invalid response (I return NO from this method) I would like to
select all of the text in the NSTextField. I believe I should use this
method to do that:
[myNSTextField selectText: (id)sender];
However, what the heck (in this case) is (id)sender? In other words, I
can't seem to figure out how to select all of the text in the text
field from within my delegate method.
Tom Gray
-------------
email@hidden
or
email@hidden
_______________________________________________
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.