Is there anything that could cause the getter and setter not to be generated properly? I have my properties declared:
@property (assign) float mass, appliedForce; In the implementation file: @synthesize mass = _mass; Then in the AppController: -(IBAction)updateMass:(id)sender { [_simulationView setMass:[sender floatValue]]; //[_massDisplay setFormatter:_numberFormatter]; NSLog(@"Mass: %f", [_simulationView mass]); [_massDisplay setFloatValue:[_simulationView mass]]; // [A] } If I replace [_massDisplay setFloatValue:[_simulationView mass]] with [_massDisplay setFloatValue:[sender floatValue]], the value displays in the text field in the panel. But with the former I get zero. What could cause such a discrepancy? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com