• 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: Storing values in dictionary with their address as the key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing values in dictionary with their address as the key


  • Subject: Re: Storing values in dictionary with their address as the key
  • From: David Duncan <email@hidden>
  • Date: Mon, 28 Jul 2008 12:56:34 -0700

On Jul 28, 2008, at 12:32 PM, Carter R. Harrison wrote:

The issue was with the format string.. Instead of a %x, I needed a %qx. The %qx displays a 64 bit address whereas the %x displays a 32 bit address. When you give %x, only the least significant 32 bits are printed and those happen to always be the same (at least in my case).


If you use %p it will do the right thing with 32-bit vs 64-bit pointers. However as others have said, you should pass myObject not &myObject if you really want to use NSString keys (instead of NSValue keys).
--
David Duncan
Apple DTS Animation and Printing
email@hidden




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Storing values in dictionary with their address as the key (From: "Carter R. Harrison" <email@hidden>)
 >Re: Storing values in dictionary with their address as the key (From: "David Wilson" <email@hidden>)
 >Re: Storing values in dictionary with their address as the key (From: "Carter R. Harrison" <email@hidden>)

  • Prev by Date: Re: Storing values in dictionary with their address as the key
  • Next by Date: [Moderator] Re: Shameless Ottawa (Canada) Cocoaheads plug
  • Previous by thread: Re: Storing values in dictionary with their address as the key
  • Next by thread: Re: Storing values in dictionary with their address as the key
  • Index(es):
    • Date
    • Thread