• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: object instance names generated on the fly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: object instance names generated on the fly? (From: Ben Dougall <email@hidden>)

  • Prev by Date: Re: object instance names generated on the fly?
  • Next by Date: Re: Can't cache image
  • Previous by thread: Re: object instance names generated on the fly?
  • Next by thread: Re: object instance names generated on the fly?
  • Index(es):
    • Date
    • Thread