• 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 content in NSTableView Cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing content in NSTableView Cells


  • Subject: Re: Drawing content in NSTableView Cells
  • From: j o a r <email@hidden>
  • Date: Mon, 16 May 2005 20:29:49 +0200

Simply subclass NSCell and override the drawing primitives to do your custom drawing. Oh, you also need to set your cell subclass to be the data cell of the column in question of course.

You can certainly find sample code from Apple or third parties if you want some pointers how to get started (Google...). I think you need to provide a more specific question if you want a more concrete answer.

j o a r

On 16 maj 2005, at 20.24, Tom Hancocks wrote:

Um, this probably seems really trivial, but hey, you only learn by asking questions, don't you? Anyway I would like to know how to draw graphics in to a NSTableView's cell, such as an icon, and gradient and move the position of the caption.

I know this is possible but i'm not sure how. If i didn't explain that properly, then the finder uses it on its sidebar thing, and mail uses it, iChat uses it etc.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Drawing content in NSTableView Cells (From: Tom Hancocks <email@hidden>)

  • Prev by Date: Drawing content in NSTableView Cells
  • Next by Date: Re: NSSocketPort question: retainCount
  • Previous by thread: Drawing content in NSTableView Cells
  • Next by thread: How do I populate Tiger's Core Data via NSSQLiteStoreType; programatically?
  • Index(es):
    • Date
    • Thread