views:

165

answers:

2

Is there a flag that can be set that will cause a Cocoa button to be highlighted when it is moused over. I need to this programatically with objective C on OSX.

+6  A: 

Setup a tracking area for the view with addTrackingArea (provided you are using Leopard or newer OS X). You'll get events on mouse enter and mouse exit.

Pablo Santa Cruz
+1  A: 

Check out AMRolloverButton which does exactly this.

Rob Keniger