Hi, Apologies in advance for being stupid!
I've got an app I'm trying to create, using Core Data, I created the data model, and Dragged some of the interface into place in the nib.
I've almost got the bindings sorted so it's got Array controllers for all the entities, and it's pretty much displaying everything correctly.
Some things I want to do though need to be actually coded, but how do I reference the Arrays/Array controllers in the code? Do I need to declare them? They aren't at the moment that I can see, but somehow it's using them. All the tutorials I find either cover everything in code (kind of Pre-Core Data) or do everything with bindings.
For example, I've got an Entity called Product, with 3 properties, UOMcost, purchaseUOM and cost. I want cost to = UOMcost/purchaseUOM. I can't set this up in the datamodel, so I need to calculate it. In my interface I've got a table with all the products, and text boxes that show the data for the selected product ( master/details display). I've added a 'calculate' button, so now I just need to take the 2 properties from the selected product, do the maths, and set the cost property with the result.
If anyone could show me how to do this I'd be extremely grateful, I'm only trying to do this for my own use, not to sell apps or anything, and it would really help click some cocoa/Obj-C things into place for me I think.
Thank You, _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
