• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Changing cursor in NSTextView's Subview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Distributed Objects Performance
  • Next by Date: Re: Distributed Objects Performance
  • Previous by thread: Re: Distributed Objects Performance
  • Next by thread: Where does stdout go in an ordinary Cocoa application?
  • Index(es):
    • Date
    • Thread