• 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
Unwanted cursor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unwanted cursor


  • Subject: Unwanted cursor
  • From: Lorenzo <email@hidden>
  • Date: Wed, 24 Oct 2007 15:09:02 +0200

Hi,
I put an NSScrollingView in the center of a window, leaving some border to
the left and to the right. I put an NSView within a NSScrollingView.
Within this NSView, scrollable, I put several graphic objects MYObj,
subclass of NSViews. Then I define an NSCursor for each MYObj within the
resetCursorRects method.

    [self addCursorRect:[self frame] cursor:theCursor];
    [theCursor setOnMouseEntered:YES];
    [theCursor setOnMouseExited:NO];

Everything works well. When I rollover the objects I can see theCursor.
Now I scroll the scrollingView horizontally such a way an object goes hidden
out of the scrollingView , let's say at the left side or the right side out
of the scrollingView. Well, now if I rollover the mouse just on the window,
out of the scrollingView, I still see the cursor. It seems that the mouse
detects the position of MYObj even when not visible in the scrolling view,
due to the scroll.

How can I fix this?


Best Regards
--
Lorenzo
email: email@hidden

_______________________________________________

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

  • Follow-Ups:
    • Re: Unwanted cursor
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Troublesome app when scaling it up, how to proceed?
  • Next by Date: Re: Troublesome app when scaling it up, how to proceed?
  • Previous by thread: Re: Troublesome app when scaling it up, how to proceed?
  • Next by thread: Re: Unwanted cursor
  • Index(es):
    • Date
    • Thread