Re: NSSlider Mouse Up

2010-12-16 Thread Kyle Sluder
010/12/16 Fritz Anderson : > I'm at the airport and without access to the documentation, but I doubt that > Cocoa promises that NSSlider will always be implemented in terms of a Carbon > button. I think you've stumbled on an undocumented technique that > accidentally happens to work. GetCurrent

Re: NSSlider Mouse Up

2010-12-16 Thread Fritz Anderson
I'm at the airport and without access to the documentation, but I doubt that Cocoa promises that NSSlider will always be implemented in terms of a Carbon button. I think you've stumbled on an undocumented technique that accidentally happens to work. Take the advice about the performSelector: fa

Re: NSSlider Mouse Up

2010-12-16 Thread koko
After posting I found a Carbon function GetCurrentButtonState; I call this in my slider action method and if the mouse is up I do my clean up and return otherwise I do the live slider action. Seems to work just fine. Am I OK with this? -koko On Dec 16, 2010, at 3:54 PM, Ken Ferry wrote: H

Re: NSSlider Mouse Up

2010-12-16 Thread Ken Ferry
Hi Koko, On Thu, Dec 16, 2010 at 2:37 PM, wrote: > What is the preferred way of receiving an action when the mouse is released > in an NSSlider? > The preferred thing is not to do precisely that. It's to have the action method use, say, -performSelector:withObject:afterDelay: and + cancelPrevi

NSSlider Mouse Up

2010-12-16 Thread koko
What is the preferred way of receiving an action when the mouse is released in an NSSlider? -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at