• 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
NSTableView: getting different behaviours when selecting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView: getting different behaviours when selecting


  • Subject: NSTableView: getting different behaviours when selecting
  • From: Jean-Luc Peuriere <email@hidden>
  • Date: Wed, 7 Aug 2002 20:03:48 +0200

[this question was also posed on omni list but didn't get answer there]

Hi,

I have a NSTableView where I need the following behaviour :

- when user click a row in a particular column, he toggles an attribute without selecting the row,
- when user click in other column, normal behaviour of selecting (and extended) is done.

The first part (toggling attribute) is easy,I just needed to wire an action in IB and check with clicked column we are in the good one.

The second part (not selecting the row) is much more difficult (for me anyway). TableView clickedColumn is noted in apple doc as valid only in the action so I can't use it in tableDelegate shouldSelectRow:

One solution would be to use tableDelegate shouldSelectRow: to return NO and doing all selection work in clicked action, but it's clumsy as I would need to mimic shift and cmd-click also, which is a lot of work, and I haven't any
idea about how doing this properly.

Other problem, this would break the work i do in selectionDidChange notification.

Does someone has a better idea ?



--
JL Peuriere |- There have been ... accidents.
|- What kind of accidents ?
|- The kind of accidents you prefer to call ... accidents.
| (T. Pratchett, Maskerade)
_______________________________________________
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.

  • Prev by Date: Bolding using applyFontTraits
  • Next by Date: Inspector Windows
  • Previous by thread: Re: Bolding using applyFontTraits
  • Next by thread: Inspector Windows
  • Index(es):
    • Date
    • Thread