• 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 background image for column?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTableview background image for column?
      • From: Izak van Langevelde <email@hidden>
    • Re: NSTableview background image for column?
      • From: Andy Lee <email@hidden>
References: 
 >NSTableview background image for column? (From: Izak van Langevelde <email@hidden>)

  • Prev by Date: Re: CharacterSet: CharSet("A") - CharSetUnicode = remainder ?
  • Next by Date: Re: NSTableview background image for column?
  • Previous by thread: NSTableview background image for column?
  • Next by thread: Re: NSTableview background image for column?
  • Index(es):
    • Date
    • Thread