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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to