Re: -mouseDownFlags while dragging over NSCells returns 0
Re: -mouseDownFlags while dragging over NSCells returns 0
- Subject: Re: -mouseDownFlags while dragging over NSCells returns 0
- From: Andreas Mayer <email@hidden>
- Date: Wed, 4 Apr 2007 04:57:39 +0200
Am 03.04.2007 um 22:28 Uhr schrieb Roland Torres:
Now I need to color the cells by clicking and dragging the mouse
over them
I'm not sure NSMatrix is the right choice here. Maybe you should
create your own custom view. You can then handle all mouse events any
way you like. It shouldn't be too much work, since you can keep your
cells to do the drawing.
Is there some way to know, when an NSCell's -drawWithFrame:inView:
method gets invoked, that it's in a mouseDown event?
Set a flag in the view on -mouseDown: and check it from the cell's
drawing code.
Andreas
_______________________________________________
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