Re: NSTableview background image for column?
Re: NSTableview background image for column?
- Subject: Re: NSTableview background image for column?
- From: Andy Lee <email@hidden>
- Date: Sat, 24 Apr 2010 14:44:04 -0400
What about a custom table cell whose draw method draws the appropriate subrectangle of the image? Would that work? You might have to work around the table's intercellSpacing so there aren't breaks in the image.
What's in this image anyway? I'm having a hard time imagining an app that would use a table column this way. Are the columns of your table sortable, and if so, does the image remain the same?
--Andy
On Apr 24, 2010, at 2:28 PM, Izak van Langevelde wrote:
> An NSTableView needs a column with one single image, spanning the entire column.
>
> I have got this working by setting as the background colour of the NSTableView a pattern, consisting of the background image, scaled big enough so it does not tile. However, this is somewhat limiting with respect to column reordering and resizing.
>
> I considered using an NSImageView next to theNSTableView within the same NSScrollView, or making a table cell span all rows, but each of these has its own problems.
>
> Any suggestions on how to improve?
>
> Regards,
> Izak
> ---
> Grinnikend door het leven...
_______________________________________________
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