Re: Who owns the field editor?
Re: Who owns the field editor?
- Subject: Re: Who owns the field editor?
- From: Joshua Emmons <email@hidden>
- Date: Wed, 12 Dec 2007 13:28:19 -0600
I'm trying to figure out which NSTextField in my window is currently
being edited
I usually do something like the following (typed in mail):
NSText *fe = [myWindow fieldEditor:NO ForObject:nil];
if(nil!=fe){
NSTextField *fieldBeingEdited = [fe delegate];
}
AFAIK, the thing being edited is always the delegate. I assume the
delegate of an "unattached" field editor is nil, but haven't tested it.
Cheers,
-Joshua Emmons
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden