Changing cursors in window's bounds
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