• 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: NSTableView subclass with column-spanning text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView subclass with column-spanning text?


  • Subject: Re: NSTableView subclass with column-spanning text?
  • From: Don Swatman <email@hidden>
  • Date: Tue, 21 Sep 2004 10:52:06 +0100

I had to do something similar, but required variable sized row height as well. I achieved this by deriving of NSTableView, then overriding

rectOfColumn:
rectOfRow:
rowsInRect:
rowAtPoint:
frameOfCellAtColumn:row:
drawRow:clipRect:

Where necessary I call the super before implementing my own code. This all seems to work (as I guess the class authors use these functions and not just multiply rowHeight).The only issue is that the text line display can become a bit fractured if a column is dragged. I reckon I can cure this by implementing tableViewColumnDidMove: delegate and forcing a redraw.

Don.


On 17 Sep 2004, at 5:44 pm, David Feldman wrote:

I'm looking to implement a subclass of NSTableView in which each row can have a column-spanning sub-row for longer, row-related text (like a note of some kind). See attached image. Any thoughts on an effective way to implement this that takes advantage of as much of the existing NSTableView code as possible?

Thanks,
--Dave

<ext-tableview.gif> _______________________________________________
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: 
 >NSTableView subclass with column-spanning text? (From: David Feldman <email@hidden>)

  • Prev by Date: Re: Removing everything from a NSView[SOLVED]
  • Next by Date: Re: NSData questions (including Altivec)
  • Previous by thread: Re: NSTableView subclass with column-spanning text?
  • Next by thread: DO - Multiple thread access to root proxy needs protocol set?
  • Index(es):
    • Date
    • Thread