Re: object instance names generated on the fly?
Re: object instance names generated on the fly?
- Subject: Re: object instance names generated on the fly?
- From: j o a r <email@hidden>
- Date: Fri, 21 Mar 2003 23:35:52 +0100
On Friday, Mar 21, 2003, at 23:03 Europe/Stockholm, Ben Dougall wrote:
Otherwise, I think an [NSMutableDictionary addObject:[[NSObject
alloc] init] withKey:<generated name>] is probably the way to go.
that looks possible/hopeful. don't really understand it though, only
because i don't know obj-c/cocoa properly yet.
What do you know properly? (Somewhat serious question, if we knew what
you are comparing with it would probably allow us to give you better
assistance).
which object in that would be the one that's the main one being added
there? the NSObject? so that would be replaced with myObject? and all
the instances would reside in a NSMutableDictionary instance?
Yup.
so NSMutableDictionary is what's being used to tie the various
instances together, incorporating/using a variable instance name? yup,
i will have to look into this for sure.
Think of dictionaries as repositories for objects, where each object
can be referenced via an unique name. Sounds like what you're after,
right?
damn. i did think there was a possibility that what i'm asking for was
almost completely standard, done all the time, but obviously not from
the responses :/
I think that we're just speaking different languages... Hang around
here for a while, and things will start to make much more sense to you
- it's a promise.
j o a r
_______________________________________________
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.