Re: Displaying 2 images in a single cell of nstableview
Re: Displaying 2 images in a single cell of nstableview
- Subject: Re: Displaying 2 images in a single cell of nstableview
- From: Scott Ribe <email@hidden>
- Date: Fri, 08 Dec 2006 08:25:37 -0700
- Thread-topic: Displaying 2 images in a single cell of nstableview
Normal way: Your delegate's tableView:objectValueForTableColumn:row: method
returns an object which becomes the cell's value. Then the NSCell
objectValue method can retrieve it when drawing.
Back door: Your delegate's tableView:willDisplayCell:forTableColumn:row:
method modifies the NSCell, or sets global variables, or whatever. This is
not really a good thing to do if your app is all Cocoa, but can provide a
way to kludge something up if your data comes from a source that is not
Cocoa nor convenient to wrap in a Cocoa object.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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