On 5/8/12 2:35 PM, Alex Zavatone wrote:

Or, more straightforward than my NSValueTransformer suggestion (which is
I suppose of diminished value, no pun intended, in this scenario), you
could just add methods to your annotation object (via category if you
don't control the object itself), like:

- (id)initWithJSONSerializableRepresentation:(NSDictionary *)aDictionary;
- (NSDictionary *)JSONSerializableRepresentation;

that would convert to/from a serializable object.

-- 
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to