Changing cursor in NSTextView's Subview
Changing cursor in NSTextView's Subview
- Subject: Changing cursor in NSTextView's Subview
- From: chaitanya pandit <email@hidden>
- Date: Fri, 14 Nov 2008 15:49:56 +0530
Hi, List
I have a NSTextView with some subviews, i want to implement tracking
areas for the subViews so that whenever the mouse enters a subview the
cursor changes to open hand cursor.
I referred the Trackit example (http://developer.apple.com/samplecode/TrackIt/index.html#/
/apple_ref/doc/uid/DTS10004139) and implemented the tracking areas
such that the owner is the subview and the rectangle is it's bounds.
I get called at the subview's - (void)cursorUpdate:(NSEvent*)event,
but in this method even if i set the cursor to the open hand cursor
([[NSCursor openHandCursor] set];) the cursor is still an I beam cursor.
Any idea what i'm missing here?
I'd appreciate any help as this is really driving me crazy
Thanks,
Chaitanya
_______________________________________________
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