Re: description and proxy objects
Re: description and proxy objects
- Subject: Re: description and proxy objects
- From: Ken Thomases <email@hidden>
- Date: Thu, 26 Jun 2008 23:59:52 -0500
On Jun 26, 2008, at 8:05 PM, Kyle Sluder wrote:
On Thu, Jun 26, 2008 at 7:36 PM, Torsten Curdt <email@hidden>
wrote:
I am getting the selected object from a controller (that is using
bindings)
NSDictionary *accountSettings = [accountsController selection];
The returned object is a proxy object. But why isn't the
[accountSettings
description] passed on?
2) Without implementing -description for the proxy itself, you would
have no idea that an object was actually a proxy without inspecting
its isa pointer, which for all you know has been swizzled out anyway.
Uh, except for the -isProxy method. :)
That said, I hope Torsten is only using -description for debugging
purposes rather than as a general way to get a text form of a
dictionary. For the latter, I recommend NSPropertyListSerialization.
Cheers,
Ken
_______________________________________________
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:
This email sent to email@hidden