Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

object , name, identity...and newbie



There is an array "thePersons" composed of object : individual1, individual2, individual3,...(class individu obviously !)
each object have properties and a name which the user can define: for example john, mary, george....
I can find the third object of thePersons with his index : 3 it's individual3, his name is george.
But the user can delete (Kill ??!!) one or several objects....
And worse ! the user can change their name.....Mary becomes Elizabeth

To recognize an individualX, I want an index which never change !

Must I make a dictionnary ? or Cocoa can give me a uniqueID ? already made ? (In Hypercard, it's easy, already made ! and I suspect that exists the same in Cocoa, for Hypercard and Cocao must know who makes what with whom...!)

Do I have to create this property? and define it for each individu or can I use an already used property without double use ?

Thanks to be patient ! Hypercard and Cocoa are same family but I am not their grand father ! That's a pity, Cocoa children seems wonderful !
_______________________________________________
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.


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.