Re: Changing an NSCursor on "Mouse-Over"
Re: Changing an NSCursor on "Mouse-Over"
- Subject: Re: Changing an NSCursor on "Mouse-Over"
- From: John Randolph <email@hidden>
- Date: Fri, 12 Mar 2004 17:38:12 -0800
On Mar 10, 2004, at 9:31 AM, Michael Becker wrote:
Hello!
I would like to implement a resizable rectangle in my NSView subclass.
When the mouse hovers over one of the rectangle's borders, the cursor
should change to a "resize"-cursor.
Unfortunately, I cannot use -addCursorRect:cursor: and the like,
because I want only the borders to trigger the change.
Sure you can. Just make four skinny cursor rects. Or, if you want to
be really complete, eight cursor rects (four for the sides, for for the
corners.)
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.