Tuesday, April 5, 2011

Making a Cocoa Button look like is pressed, programatically...

The title pretty much says it all, I have some key events, that correspond to buttons also. What property/method to I have to set/call for a button to look depressed (change state?) for say half a second?

Thanks alot in advance!!

James Hartt

From stackoverflow
  • What property … to I have to set… for a button to …change state…?

    -[NSButton setState:].

  • not quite, its highlight... [NSButton highlight:YES]; Thanks for the effort!!

0 comments:

Post a Comment