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 > can this be done with Core Data?

can this be done with Core Data?
Thread Tools
adamk
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status: Offline
Reply With Quote
May 5, 2005, 12:11 PM
 
i haven't bought tiger yet, so i haven't had a chance to play with xcode 2.0, but i have been reading up on it. while, it seems powerful, i haven't found any evidence that it can do some things that i need to do.

i have a vector class with variables i, j, k. that should be fairly straightforward, but what if i want to find the length of the vector? is there a way to calculate that value based on the other three variables, or would it have to be explicitly set like all the other variables?

thanks, adam
"do unto others as you would have them do unto you" begins with yrself.

"He that fights for Allah's cause fights for himself. Allah does not need His creatures' help." -koran, the spider, 29:7
     
adamk  (op)
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status: Offline
Reply With Quote
May 6, 2005, 01:44 PM
 
okay, i read some more and think i have found the answer to my own question.

from http://www.cocoadevcentral.com/articles/000086.php :
Since the description of data is separate from a class implementation, you can assign multiple Entities to the same class, reducing the overall amount of code in a project. In a sense, each Entity is a different role played by NSManagedObject.
which seems to suggest that i could implement -(double)length in the class implementation and calculate it using the data stored in core data for that entity.
"do unto others as you would have them do unto you" begins with yrself.

"He that fights for Allah's cause fights for himself. Allah does not need His creatures' help." -koran, the spider, 29:7
     
insha
Senior User
Join Date: Nov 2003
Location: Middle of the street
Status: Offline
Reply With Quote
May 7, 2005, 07:20 PM
 
Can't help you with your query. I clicked on the thread to see if you got touse Core Data and what were your impressions of it.

Anyway, all is not lost. I like your sig.
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 09:59 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,