Re: saving an object reference
- Subject: Re: saving an object reference
- From: "I. Savant" <email@hidden>
- Date: Thu, 27 Dec 2007 13:44:35 -0500
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=HcZVfwFg3WxkGGGQA/KzklUkUc7SAcUsUsLnJVmaNQI=; b=qiwxOh6ww5+xOUCNcNvKb3ly7MiM9rY825g/S3bRaHUf7XkOWtx4o41weQ0uVaE4NbqPYmkb9y6e8bIMF2L5eHoTUF5pCPEOtH4n25PeiZ03T6It3UO3VpY54rcjSmaw3Up1JjR47+Jf1PF4yIL5G9yicE2kvT5t/hCDwdstpIE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=AhV4tzt/UphhuVX33M2OEcrfhsbjGlrlOPu3dUzU0oIK0lj7sBsgerTzndADwbZUzcv7/+IUl86UGn+RaOuLAuD3HeIxHxmvt2SVjlInojhvTxd4SBO49jCUsiPGI+J6VNp44shVR0FEY+7EXdUiofqgzARxcvqyhmSYAy9s/7s=
But how do I store a reference (pointer) to an existing object in a
dictionary?
I'm not exactly sure I understand your goal, but storing (archiving/
serializing) an object graph is traditionally done via the NSCoding
Protocol:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html
--
I.S.
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.