2 May 22:20
RE: Re: Object <--> some string ObjectIdentity
From: Ramon Leon <ramon.leon <at> allresnet.com>
Subject: RE: Re: Object <--> some string ObjectIdentity
Newsgroups: gmane.comp.lang.smalltalk.squeak.beginners
Date: 2008-05-02 20:20:46 GMT
Subject: RE: Re: Object <--> some string ObjectIdentity
Newsgroups: gmane.comp.lang.smalltalk.squeak.beginners
Date: 2008-05-02 20:20:46 GMT
> > I generate an id for my domain objects in initialize. All > my domain objects > > answer to #id, see my SandstoneDb package on SqueakSource. For > > WAComponents, I don't bother, if I need an id for ajax > purposes I use either > > html nextId, or use my domain objects id with some prefix > or postfix. > > That doesn't answer how you get to the object, if you only know the ID > though> > Lukas True, but I'm assuming Sophie knows how to use a Dictionary to hash any objects she needs by id. If not, she can certainly find examples in the package I mentioned. Ramon Leon http://onsmalltalk.com
>
> Lukas
True, but I'm assuming Sophie knows how to use a Dictionary to hash any
objects she needs by id. If not, she can certainly find examples in the
package I mentioned.
Ramon Leon
RSS Feed