Displaying a checkbox (NSButton) alongside text in NSOutlineView
Displaying a checkbox (NSButton) alongside text in NSOutlineView
- Subject: Displaying a checkbox (NSButton) alongside text in NSOutlineView
- From: Tim Hewett <email@hidden>
- Date: Fri, 17 Oct 2003 17:49:11 +0100
Hi,
I'm trying to create a NSOutlineView column which has a checkbox
alongside some text in a particular column, in the same way as iTunes
does in a play list in the song name column. I've been basing my code
on the DragNDropOutlineView example on the developer CD, setting
the table column cell to my own custom class based on the
ImageAndTextCell
class in the above example code. I'm having a few problems adapting
this class to contain a NSButton instead of a NSImage, I get the string
displayed but not the button - I had to comment out the
[NSImage compositeToPoint:operation:] method call as there is no
equivalent for NSButton.
Anyone know of an example of this being done, either for a NSOutlineView
or NSTableView (since they are very similar)? Any hints anyone?
Tim.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.