Application Overview
Application Overview
- Subject: Application Overview
- From: "McDonald, Timothy P" <email@hidden>
- Date: Thu, 20 Nov 2003 13:36:05 -0000
Hi
Bit of a newbie and I've come across a tricky problem I need to solve.
I'm writing a design program which is able to size components. Ideally the
user should be able to enter a formula which is then solved (using the
Evaluator from Building Cocoa Apps).
The Objects representing the components are all held in an NSMutableArray.
They typically respond to Volume, Mass and similar messages. Each
A seperate tree type arrangements of NSMutableArray will be used to provide
a breakdown of the design in terms of different areas (ie total, machinery,
payload, etc...). The leaves at the bottom of the tree will refer to the
Objects representing the components.
However some of the Objects mass and/or volume are determined in relation to
the total volume. I need some simple way of being able to substitute in
values for the breakdown of the design.
My initial thoughts were to simply use a text field to enter the reference
(ie Total.Machinery.Volume) then before the evaluation is run substitue in
the current values. From my perspective this is far from elegent and gives
up a lot of the benefits of objects. I would prefer the user to be able to
drag a volume (for example) from breakdown of the design and for it to
appear as a block which points to the original. This would prevent problems
with changes to the name of an object in the breakdown resulting in invalid
formulas.
I am presentally woudering how I could implement the second method. Any
tips, hints, pointers or complete source code from the cocoa gurus on this
list would be appreciated.
Cheers
Tim
_______________________________________________
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.