Controller Question
Controller Question
- Subject: Controller Question
- From: James Hillhouse <email@hidden>
- Date: Sat, 3 Jan 2004 17:51:55 -0500
From: email@hidden
Subject: Controller Layer Question
Date: January 3, 2004 4:11:04 PM EST
To: email@hidden
From: email@hidden
Subject: Controller Layer Question
Date: January 2, 2004 11:33:46 PM EST
To: email@hidden
Hey folks,
I'm working with a problem where I would like to have an interface that
has one or multiple text fields that generate output for two or more
text fields. For example,
Enter position, step-size, and time-step
Calculate the new position, the velocity, and the acceleration
This is a no-brainer if I were not using the new Controller Layer. But
I'd like to use the Controllers found in the latest release of IB. And
I'm working from Apple's application examples found in the
documentation. So that means that the initializer I've up to now used
is,
+(void)initialize
{
[ Integrator setKeys:
[ NSArray arrayWithObjects:@"position", "stepSize", "timeStep",
nil ]
triggerChangeNotificationsForDependentKey:@"integratedPosition"
];
}
What I'm trying to get to now would allow for the calculation and
display to text fields
integratedPosition
integratedVelocity
integratedAcceleration
AFTER entering
position
stepSize
timeStep
I'm wondering if I shouldn't just forgo the use of the setKeys:
triggerChangeNotificationsForDependentKey: method and just use some
other way to have a notification of a change the keys position,
stepSize, timeStep that will then change integratedPosition,
integratedVelocity, and integratedAcceleration.
I'm ready to acknowledge that this isn't the most cutting edge of
questions. But I could sure use some advise and help.
Thanks,
Jim
email@hidden
877-586-5372
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.