• 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 cursors in window's bounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing cursors in window's bounds


  • Subject: Changing cursors in window's bounds
  • From: John Love <email@hidden>
  • Date: Fri, 28 May 2010 14:55:02 -0400

I do not have a custom view, rather just the window's contentView with its various graphics, buttons, text etc.  I wish to simply change the cursor anytime the mouse is inside any part of this contentView.

If I did have a custom view, I understand all the machinations pertaining to changing cursors, e.g., NSView's initWithRect:, addTrackingArea:, and cursorUpdate:  Thanks to Apple's TrackIt Project, it all seems straightforward.

My challenge centers on trying to make this magic happen just in the window's canned contentView without creating a custom NSView within Interface Builder.  My sub-classed NSDocument knows about the window via my overridden -windowControllerDidLoadNib:(NSWindowController *)aController because its window = [aController window].  Also,  I have one Controller (sub to NSObject) which has knowledge of the NSDocument's NSWindow because I pass this window to it.

So, how do I effect cursor tracking just in this window without creating a custom NSView in IB?

John Love
Touch the Future! Teach!



_______________________________________________

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

  • Follow-Ups:
    • Re: Changing cursors in window's bounds
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: six things I wasn't able to do with Cocoa
  • Next by Date: Re: six things I wasn't able to do with Cocoa
  • Previous by thread: Re: Spotlight SDK replacement on iPad/iPhone
  • Next by thread: Re: Changing cursors in window's bounds
  • Index(es):
    • Date
    • Thread