• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to know when user clicks on field editor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >How to know when user clicks on field editor? (From: Kenny Leung <email@hidden>)

  • Prev by Date: Weird tabbing result... very weird
  • Next by Date: SOLVED: Weird tabbing results
  • Previous by thread: Re: How to know when user clicks on field editor?
  • Next by thread: How to perform a Coredata subquery
  • Index(es):
    • Date
    • Thread