Sending values to a control

This is a discussion on Sending values to a control within the C Programming forums, part of the General Programming Boards category; Hey guys
I'm really new to C coding, only been doing it a day or so... but i'm trying to ...

Sending values to a control

Hey guys

I'm really new to C coding, only been doing it a day or so... but i'm trying to create a calculator, I've never been able to really figure a way out of doing it properly before, so I thought I might as well try

I use a Mac so i'm using Xcode with Cocoa, this is my problem... When the "EQUALS" button is pressed I want it to send 3 values to my controller which then works out what calculation to do and sends the correct value back. I'm not sure the code on how to do that works so think someone could help? I know this probably isn't the right way of doing things but I wanna sorta figure things out, make new calculators, learn new ways of doing things, etc. And this is my current one.