• 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
Re: Changing an NSCursor on "Mouse-Over"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Changing an NSCursor on "Mouse-Over" (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: Odd binding issue
  • Next by Date: Re: Odd binding issue
  • Previous by thread: Re: Changing an NSCursor on "Mouse-Over"
  • Next by thread: Cron / Scheduling
  • Index(es):
    • Date
    • Thread