View Full Version : Obj-C/cocoa, my first app problem
Apr 19, 2011, 03:14 PM
This is my first application for Iphone.It's a calculator, there is no error in code I suppose. Application is launching but buttons doesn't work. please exam this project. I really need answer:/ project in attachment.
Apr 19, 2011, 03:37 PM
Explain exactly what "doesn't work" means.
1. Describe what you expected to happen.
2. Describe what actually happens.
What have you tried for debugging your code?
Have you tried adding NSLog() statements to your IBAction targets?
Have you tried setting breakpoints using the debugger?
It's a calculator, there is no error in code I suppose.
Why would you suppose there are no errors in your code?
I took a quick look and found several errors, some of them serious mistakes in memory management. There are also some failures to assign objects to ivars.
Apr 19, 2011, 06:18 PM
You have to do at least 95% of the work before you ask for help. You need to isolate the problem and then post for help if you can't figure it out. If you can't / won't isolate it, you are not going to get much help. The beauty of this system is that your odds of figuring it out on your own after isolating it go way, way, way up. Cheers.
Apr 19, 2011, 07:05 PM
In your processDigit method you set currentNumber to currentNumber * 10 + digit . I don't see where you set currentNumber's value.
By The Way, this sould be in the IOS programming section, you might get more help there... ;)