Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > xcode - help required

xcode - help required
Thread Tools
Forum Regular
Join Date: Jun 2004
Status: Offline
Reply With Quote
Oct 18, 2004, 05:28 PM
 
Hi

I am looking to create a piece of software which can analyse the nutritional value of products.

The core elemets will consist of the user entering the name etc for the product, and then enterting quantities used from lists of ingredients (split into categories).

From here, the nutritional value should be calculated by multiplying the amount used by the amount of calories etc in each ingredient.

The final output will be that the totals are colaborated into a 'package label', displaying the lists of ingredients against a table of nutritional values.

Does anybody have any suggestion as to how I might go about this? This is the first time I have ever used the xCode pack.

Thanks

Jamesl
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Oct 18, 2004, 08:57 PM
 
Well... the easiest way is probably using RealBASIC, but using Xcode I would say learn some basic Cocoa programming. Doing a search on this forum should get you started, some other good resources are developer.apple.com and cocoadev.com
     
jamesl  (op)
Forum Regular
Join Date: Jun 2004
Status: Offline
Reply With Quote
Oct 19, 2004, 09:56 AM
 
Thanks for that info.

My reason for choosing xCode is because I have got access to it, as oppose to real Basic which I only own a trial version of.

Does anybody have any rough hints or tips as to how the various sections of this may work?

Thanks, James
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Oct 19, 2004, 12:45 PM
 
Originally posted by jamesl:
Thanks for that info.

My reason for choosing xCode is because I have got access to it, as oppose to real Basic which I only own a trial version of.

Does anybody have any rough hints or tips as to how the various sections of this may work?

Thanks, James
Code:
--------------------- | | | 2 column | | NSTableView | | | --------------------- |+|-| result
I'm thinking something like that. Then you can use bindings to hook the table view to an NSArrayController and the result field to the sum of the calories column. Clicking the + button can bring up a sheet with a list of ingredients loaded from a file. This would definitely take some Cocoa learning for a beginner to do though There are probably easier (if, imo, less slick) ways of doing it in Cocoa.

<edit> dang UBB messing up my formatting </edit>
(Last edited by Catfish_Man; Oct 19, 2004 at 01:20 PM. )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:16 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2