Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xmax

macrumors member
Original poster
Jul 3, 2008
33
0
I am trying this code :
[aView addCursorRect:[aLabel frame] cursor:[NSCursor pointingHandCursor]];

but i am not getting it work. do i need to set any property in Interface Builder.
I have seen 2 to 3 threads with same problem.
but not providing solution to this.

TextField not displaying pointinig hand cursor when i hand over mouse on label.


Thanks,

xmax
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
If you don't already have an NSTextField subclass, make one and put this in it:

Code:
- (void)resetCursorRects
{
    [self addCursorRect:[self bounds] cursor:[NSCursor pointingHandCursor]];
}
 

xmax

macrumors member
Original poster
Jul 3, 2008
33
0
Thanks For Your reply.
I made Sub Class for NSTextField and it's working now.


Thanks

xmax.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.