Konrad Kolasa
Konrad Kolasa

Reputation: 621

NSControl and kind of sendActionsForControlEvents

I have a problem... looking for similar method to sendActionsForControlEvents (from iOS UIControl) for NSControl?

Is there anything similar for Mac? I need to get an info about changing state of my custom switch.

Thanks!

Upvotes: 2

Views: 332

Answers (1)

rdelmar
rdelmar

Reputation: 104082

Just supply an IBAction for your switch, and get the state of the switch from the sender parameter.

Upvotes: 1

Related Questions