object , name, identity...and newbie
object , name, identity...and newbie
- Subject: object , name, identity...and newbie
- From: Pierre-Marie CARETTE <email@hidden>
- Date: Tue, 29 Apr 2003 15:54:34 +0200
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.