creating a "track ball" button
creating a "track ball" button
- Subject: creating a "track ball" button
- From: "tobias ford..." <email@hidden>
- Date: Fri, 22 Mar 2002 01:27:33 -0600
I'm trying to create a button in IB that will mimic track ball behavior.
I want the user to click on the button and be able to drag with the
button still activated until the mouse is released. I need the button
to stay activated until the mouse up - even when the mouse has left the
tracking rect. I also need to be able to get the mouse deltas while
dragging.
I've attempted subclassing NSButton and overriding
prefersTrackingUntilMouseUp to return YES, but this isn't creating the
desired behavior. Has anyone done this before or have recommendations
on how to do this correctly?
Thanks in advance.
-------------------
Tobias Ford...
email@hidden email@hidden
-------------------
Senior Software Engineer @ WolfPack Studios
www.wolfpackstudios.com www.shadowbane.com
_______________________________________________
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.