Re: How to check if NSTextField is selected?
Re: How to check if NSTextField is selected?
- Subject: Re: How to check if NSTextField is selected?
- From: Peter Schart <email@hidden>
- Date: Thu, 28 Sep 2006 10:36:39 -0500
On Sep 28, 2006, at 10:24 AM, Jordan Evans wrote:
How do I query NSTextField to know if it's the selected text field in
the interface. You know, when it has the blue highlighting around it?
Ask the window what the first responder is and compare it to your
NSTextField object. Something like:
BOOL textFieldIsSelected = ([mainWindow firstResponder] ==
textFieldObject);
-pete
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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