Or look into overriding some combination of NSTableView's 
drawBackgroundInClipRect:, drawGridInClipRect:, and drawRow:clipRect:, possibly 
using information about the appropriate NSTableColumn to help calculate 
coordinates.

--Andy

On Apr 24, 2010, at 2:44 PM, Andy Lee wrote:

> 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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/aglee%40mac.com
> 
> This email sent to ag...@mac.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to