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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to