• 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
Is the "id" type an immovable pointer? Or a movable handle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is the "id" type an immovable pointer? Or a movable handle


  • Subject: Is the "id" type an immovable pointer? Or a movable handle
  • From: Ken Tozier <email@hidden>
  • Date: Wed, 31 Jan 2007 18:06:56 -0500

Hi

I'm creating a bunch of NSInvocations and want to store them in a dictionary with a key that uniquely identifies the invocation target. I checked the "Objective C runtime" documentation and it doesn't appear that NSObjects have unique identifiers. I thought of adding a uuid property to a base class but uuids are 128 bytes so I was wondering, if objects don't move around in memory after allocation, I could just package the id to an NSNumber and use that for the key.

Anyone know if ids are pointers or handles?

Thanks

Ken
_______________________________________________

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


  • Follow-Ups:
    • Re: Is the "id" type an immovable pointer? Or a movable handle
      • From: Joar Wingfors <email@hidden>
    • Re: Is the "id" type an immovable pointer? Or a movable handle
      • From: Chris Suter <email@hidden>
    • Re: Is the "id" type an immovable pointer? Or a movable handle
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: Subclass observers on dealloc
  • Next by Date: Re: Is the "id" type an immovable pointer? Or a movable handle
  • Previous by thread: Re: Releasing WebView
  • Next by thread: Re: Is the "id" type an immovable pointer? Or a movable handle
  • Index(es):
    • Date
    • Thread