• 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
Re: description and proxy objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >description and proxy objects (From: Torsten Curdt <email@hidden>)
 >Re: description and proxy objects (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: subclassing CAAnimation
  • Next by Date: Re: [Moderator] List Guidelines - Must Read
  • Previous by thread: Re: description and proxy objects
  • Next by thread: Re: description and proxy objects
  • Index(es):
    • Date
    • Thread