Is the "id" type an immovable pointer? Or a movable handle
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