Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Helikutt

macrumors newbie
Original poster
Apr 19, 2008
8
0
Hi

I'm building my first core-data application with Xcode 3.

I have a field "sum" on my form which calculates his value using 2 other textfields "num1" and "num2".
The calculation works fine but the value from sum field doesn't save to database.
When I retype the value manually then it saves

The only code I use is for calculation

Code:
@implementation MyDocument


- (IBAction)calculate:(id)sender {

	double result = [num1 doubleValue] + [num2 doubleValue];
	[sum setDoubleValue:result];
	
}

I hope there is a easy way to fix my problem.

Helikutt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.