• 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: NSMutableDictionary Q's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSMutableDictionary Q's
      • From: Andrew Thompson <email@hidden>
  • Prev by Date: Degree of multithreading in a server app
  • Next by Date: Re: NSMutableDictionary Q's
  • Previous by thread: Re: NSMutableDictionary Q's
  • Next by thread: Re: NSMutableDictionary Q's
  • Index(es):
    • Date
    • Thread