On 7 Jun 2010, at 12:01 , Gideon King wrote:

> I have a view where I set the cursor in a mouse moved event, when the mouse 
> is over certain places in my view (resize handles for objects). This works 
> fine, but sometimes I need to add some subviews to this view, and for some 
> reason, when I do, it stops setting the cursors in some of the places where 
> it should.

If I understand correctly you are calling NSCursor's -set from within your 
view's -mouseMoved: method.  If you are just changing cursor to indicate resize 
control areas, it would probably be cleaner to override the view's 
-resetCursorRects: method and add cursor rects there, rather than try to force 
a change when an event is being handled.

Jim McGowan

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to