Re: NSTextField has cursor in it?
Re: NSTextField has cursor in it?
- Subject: Re: NSTextField has cursor in it?
- From: "Louis C. Sacha" <email@hidden>
- Date: Thu, 4 Dec 2003 23:57:33 -0800
Hello...
How about the NSControl method:
- (NSText *)currentEditor
If the receiver is being edited -- that is, it has an NSText object
acting as its field editor, and is the first responder of its
NSWindow -- this method returns the NSText editor; otherwise, it
returns nil.
You could cycle through the NSTextFields, and the one that doesn't
return nil is the one currently being edited... Don't know if there
is a better option, and regarding the other response AFAIK there is
no isFirstResponder method documented as of 10.2.
Hope that helps,
Louis
Is there anyway to tell if a given NSTextField has the cursor in it or not?
Thanks in advance,
jay
_______________________________________________
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.