• 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: Focus ring changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Focus ring changed


  • Subject: Re: Focus ring changed
  • From: Óscar Morales Vivó <email@hidden>
  • Date: Mon, 15 Nov 2004 16:48:58 -0500

From what I see you'd need to override either the window's makeFirstResponder or the view's acceptFirstResponder. Unless I'm missing something obvious, there seems to be no delegate method for those, unfortunately (I guess they decided against it to avoid too much overhead).

You also probably can get away with capturing the NSControlTextDidEndEditingNotification of one of the NSTableView objects (or its corresponding delegate method) even though you'll probably be getting many spurious ones.

I'd fathom that there's probably a far better way of doing it with bindings but you'll have to research that one yourself.

Hope that helps:

Óscar Morales Vivó.

On Nov 15, 2004, at 15:29 , Eric Long wrote:



Hi,

Most of my posts here tend to be met with the sound of crickets... But here
goes:


I expected to find some kind of delegate method like "firstResponderChanged"
so I could know when a user changes the focus in my window from one table to
another, but I don't see a callback anywhere for this.


When one particular table is the focus, I want to disable a button, and when
the other table has the focus I want to disable it. The Cocoa mechanisms
underneath know when the focus changes and place the focus ring around the
tables appropriately, but I want to be called when the ring moves.


What is the proper Cocoa way to be notified when the focus changes?


Thanks,


Eric


_______________________________________________ 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




_______________________________________________ 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: 
 >Focus ring changed (From: Eric Long <email@hidden>)

  • Prev by Date: NSTableView RowHeight and font vertical alignment
  • Next by Date: Re: Custom NSTextView and scrolling problem
  • Previous by thread: Re: Focus ring changed
  • Next by thread: Re: Focus ring changed
  • Index(es):
    • Date
    • Thread