• 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: How can I get an instance specific identifier?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I get an instance specific identifier?


  • Subject: Re: How can I get an instance specific identifier?
  • From: Rosyna <email@hidden>
  • Date: Fri, 24 Nov 2006 14:41:12 -0700

[NSValue valueWithPointer:object] or even [NSString stringWithFormat:@"%p", object];

Ack, at 11/24/06, Alan Smith said:

I want to use the memory location (eg 0x3a1c30) as the identifier for
the object. This would be for storing info in a dictionary, the memory
location would be used as the key. I just have no idea how to get the
memory location.

It doesn't have to be the memory location but it has to be specific to
the object and cannot be possible to have two with the same ID.

--


Sincerely, Rosyna Keller Technical Support/Carbon troll/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >How can I get an instance specific identifier? (From: "Alan Smith" <email@hidden>)

  • Prev by Date: How can I get an instance specific identifier?
  • Next by Date: Repositioning an NSTextFieldCell?
  • Previous by thread: How can I get an instance specific identifier?
  • Next by thread: Re: How can I get an instance specific identifier?
  • Index(es):
    • Date
    • Thread