• 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: Non-rectangular cursor tracking regions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-rectangular cursor tracking regions


  • Subject: Re: Non-rectangular cursor tracking regions
  • From: Ron Aldrich <email@hidden>
  • Date: Thu, 19 Apr 2007 17:27:52 -0700


On Apr 19, 2007, at 4:21 PM, Ron Aldrich wrote:

Would calling the following on mouse moved events be advisable?

- (void) setCursor: (NSCursor*) inCursor
           forView: (NSView*) inView
{
  [inView discardCursorRects];

  [inView addCursorRect: [inView visibleRect]
                 cursor: inCursor];

  [inCursor set];
}

For what it's worth, this appears to work.

I still don't know what landmines I'm dancing around though ;-)

Ron Aldrich
Software Architects, Inc.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Non-rectangular cursor tracking regions (From: Ron Aldrich <email@hidden>)

  • Prev by Date: Re: NSArrayController using an external NSArray?
  • Next by Date: Re: doubleClick slop?
  • Previous by thread: Non-rectangular cursor tracking regions
  • Next by thread: NSArrayController using an external NSArray?
  • Index(es):
    • Date
    • Thread