Re: NSMutableDictionary Q's
Re: NSMutableDictionary Q's
- Subject: Re: NSMutableDictionary Q's
- From: Mike McCune <email@hidden>
- Date: Tue, 7 Jan 2003 00:07:40 -0500
well, I finally figured out what the problem was and it had to do with
how I was obtaining the strings to put in my data objects. I wasn't
getting them correctly from the objects I was using. I realize this
sounds confusing. and just to clear things up, the example I put in my
last message wasn't the actual code I was using, it was just something
I thought up on the spot.
There is if it's passed a NSMutableString. The dictionary will not
retain keys, it will copy them. This string is being used as a key, I
would copy it if I were programming it.
--__--__--
here's my question though, how come all the examples, documentation,
and books suggest doing it the opposite from how your describing, ie
instead of copying, just retaining. doesn't copying just add an extra
layer of redundancy?
Sincerely,
Mike McCune
OPB Studios
email@hidden
_______________________________________________
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.