Use of cells with custom controls
Use of cells with custom controls
- Subject: Use of cells with custom controls
- From: Chase Meadors <email@hidden>
- Date: Tue, 28 Jul 2009 19:10:15 -0500
I'm making my own class that will input a variety of data in different
formats, and NSTableView really seems clunky and unsuited for my
purposes. I'm trying to make a custom control, but I don't quite
understand what I need to do to use cells in it.
In drawRect, I can just draw the cells I want in the appropriate
places with -drawWithFrame:inView:.
However, I'm not sure how I should implement the mouse event methods
to get the correct behavior in the cells. Do I test the point of the
event, see if it's in a cell, and call some method on that cell to
make it active? Is there an easier way?
Any help appreciated.
_______________________________________________
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