Re: newbie interface problem
Re: newbie interface problem
- Subject: Re: newbie interface problem
- From: Cameron Hayne <email@hidden>
- Date: Tue, 4 Oct 2005 20:08:49 -0400
On 4-Oct-05, at 7:07 PM, Bob Sabiston wrote:
Each field and button I have connected to an outlet in my class. I
use something like the following to set them:
- (void)setDuration:(double)d {
[duration setDoubleValue: d];
NSLog(@"set Duration to %lf",d);
}
where 'duration' is the outlet name for a text field.
I think this is the problem. You are colliding with the conventions
of key-value coding.
See question 3.7.4 of the FAQ at http://www.alastairs-place.net/cocoa/
faq.txt
Try changing the names of your IB outlets - e.g. use "durationTxf"
instead of "duration".
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden