• 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: two tables, one button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: two tables, one button


  • Subject: Re: two tables, one button
  • From: Brent Gulanowski <email@hidden>
  • Date: Wed, 11 Jun 2003 17:20:18 -0400

On Wednesday, June 11, 2003, at 02:09 PM, Chris Silverberg wrote:


Every time you select an item in a table, it will send an action
message to its target.

Ah, okay... this helps. I'm not in the habit of thinking of NSTableView as
a control so I hadn't considered having the table target my window
controller. This is better than NSTableViewSelectionDidChangeNotification
because the target gets invoked even if you are clicking on an already
selected item.

One problem for the future... I suspect this is going to break if I want to
allow tabbing between tables. Will the target be invoked if the table
gains/loses focus...? I suspect it wont.

I see what you mean. I'm seeing something similar myself in that a table view I'm using doesn't send an action message when I navigate with the arrow keys. The event is being eaten and not shared. I believe there is a way to change this...

I can't find a recommended way. It is easy enough to write a category to override action messages to do their thing and then pass the same action back to the responder chain. Maybe someone else can explain the normal way to do it.

Since NSTableView doesn't seem to respond to tab for nextKeyView I'm
probably not going to implement this now. But I may come back to it in the
future.

Well some people have talked about highlight outlines for table views, check the archives -- they must have had tabbing to/from table views (if I'm remembering correctly).


Brent Gulanowski email@hidden
--
Fusion power is the energy of the future, and always will be!
_______________________________________________
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.

References: 
 >Re: two tables, one button (From: Chris Silverberg <email@hidden>)

  • Prev by Date: Re: troubling article
  • Next by Date: Re: C question for you old guys ;-)
  • Previous by thread: Re: two tables, one button
  • Next by thread: CGShieldingWindowLevel question
  • Index(es):
    • Date
    • Thread