• 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
creating a "track ball" button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: File Kind -> Carbon?
  • Next by Date: Re: Cocoa's Popularity
  • Previous by thread: Re: File Kind -> Carbon?
  • Next by thread: Re: creating a "track ball" button
  • Index(es):
    • Date
    • Thread