Re: Custom Cocoa control using Carbon? Possible? Examples?
Re: Custom Cocoa control using Carbon? Possible? Examples?
- Subject: Re: Custom Cocoa control using Carbon? Possible? Examples?
- From: j o a r <email@hidden>
- Date: Mon, 11 Aug 2003 17:29:33 +0200
The data cell of a table view is a property of the column object. Look
in NSTableColumn for the "setDataCell:" method. You need to make sure
that the cell properly conforms to NSCopying since the table view
sometimes makes copies of the cell.
j o a r
On den 11 augusti 2003, at 16:50:46PM, Mel Walker wrote:
I would like to create a custom control in Cocoa, using the Appearance
API calls (like DrawThemePlacard or DrawThemeButton or etc.) to make
it look like an actual MacOS X control. It seems obvious to use an
NSCell subclass, get the controlView's window and do the drawing. Long
story short, I'm having problems integrating these cells into a table
view. Does sample code exist to do this? I can't seem to find any, but
maybe I'm searching on the wrong words.
_______________________________________________
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.