Rollover on custom Cells
Rollover on custom Cells
- Subject: Rollover on custom Cells
- From: Gustavo Pizano <email@hidden>
- Date: Sat, 29 Nov 2008 21:44:00 +0100
Hello, I know this was already asked, but I couldn't find any reply
which will help me in the list.
I have a Custom View, that view has a layer, and that layer has many
sub-layers which are squares, so at the end what I have is a grid of
10 x 10, the book Im reading (Hillegass) says that to do rollovers,
you should avoid using the mouseMoved: instead override the
mouseEntered: and mouseExited: and define a tracking area.
So I did it whit all the Cells that the Custom view has, I defined
the tracking area for each cell in the grid and add them, then I
overrode the methods mouseEntered: and moseExited, and when I ran the
app and pass the mouse over the view ,KABOOM!! debugger launched. I
then start reading and found no info, maybe I looked bad or something.
So I decided to just define set only one tracking area, the area of
the custom view, which has a big layer (which contains all the cells).
I tried again and KABOOM!! debugger launched when entering the mouse
on the view. So I checked my code again, and I realize i didn't have
the methods to accept and become the firstResponde, I add them, tried
and KABOOM!!, and then I got disappointed and now im writing asking
for help.
Can somebody please give me and advise of what Im might be doing
wrong?, or any efficient method to achieve this purpose ?
Thanks a lot
Gustavo
_______________________________________________
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