JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser .
macrumors 6502
Original poster
Lets say I have two images named ButtonUp and ButtonDown..
How would I subclass NSButton so that it uses the ButtonUp image when not pressed.. and shows the ButtonDown image when pressed?
Thanks in advance if anyone can help
Do you actually need to subclass. Can't you actually do this all in IB? I've not needed to do this buy my first guess would be use a rounded bevel button, change it's behavoir to Push On/Push Off and mess about with Icon and Alt. Icon in the inspector
Of course as I've never done this I could be totally wrong....
macrumors 6502
Original poster
that didn't work
it doesn't use the alt. image when you push down
thanks anyway...
anyone else know?
MacRumoron said:
it doesn't use the alt. image when you push down
thanks anyway...
anyone else know?
Just did it. Set one image as the Icon, the second image as the Alt Icon, set the button behavior as "toggle". Where is the problem?
macrumors 6502
Original poster
hmm... ok it works now..lol thanks guys
i had it set to "Momentary Push In" and it should be "Momentary Change" for it to use the alt. icon...
Thanks for the help