• 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: Drawing Across NSTableView Columns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing Across NSTableView Columns


  • Subject: Re: Drawing Across NSTableView Columns
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 26 Apr 2009 20:53:37 -0700


On 2009 Apr 26, at 15:29, K. Darcy Otto wrote:

(d) I read about drawing within a custom NSTextField Cell here: http://www.cocoabuilder.com/archive/message/cocoa/2004/3/1/100423 I think this might still make the image break at each row.

This is the best option, and yes your line will be broken at a row boundary, because NSTableView has an intercell spacing.


One option is to set the table's intercellSpacing to { someX, 0.0 } but that might have other undesired side effects.

You could also subclass your NSTableView and in your subclass override (and don't forget to invoke super) in -drawRect:. In that method, after invoking super, you could draw complete lines from the first row all the way down to the bottom and then none will be broken.

In any case, use NSBezierPath to draw the lines.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Drawing Across NSTableView Columns [solved]
      • From: "K. Darcy Otto" <email@hidden>
References: 
 >Drawing Across NSTableView Columns (From: "K. Darcy Otto" <email@hidden>)

  • Prev by Date: Re: figuring out which TableView I am?
  • Next by Date: Re: Dividing NSView to subviews
  • Previous by thread: Drawing Across NSTableView Columns
  • Next by thread: Re: Drawing Across NSTableView Columns [solved]
  • Index(es):
    • Date
    • Thread