Re: How to know when user clicks on field editor?
Re: How to know when user clicks on field editor?
- Subject: Re: How to know when user clicks on field editor?
- From: PGM <email@hidden>
- Date: Wed, 12 Jul 2006 22:46:21 -0400
Hi Kenny,
I had the same question last week and, after quite a bit of searching,
found the following solution in the archives:
- (void)windowDidUpdate:(NSNotification *)notification {
static id fed = nil; //fed = field editor delegate
id newFed = [[[notification object] fieldEditor:YES forObject:nil]
delegate];
if (newFed != fed){
fed = newFed;
}
//here do your stuff with fed
}
Best, Patrick
On Jul 12, 2006, at 18:17, Kenny Leung wrote:
Hi There.
Is it possible to get notified when the user clicks on the window's
field editor? There seems to be no obvious way from the NSText API.
Thanks!
-Kenny
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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