• 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: "Kyle Sluder" <email@hidden>
  • Date: Thu, 26 Jun 2008 21:05:26 -0400

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?

There are probably a few good reasons for that.
1) Imagine debugging a Distributed Object application.  You pause the
execution and the debugger sends a million -description messages to
every object on the stack.  Probably not the best idea.
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.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: description and proxy objects
      • From: Ken Thomases <email@hidden>
References: 
 >description and proxy objects (From: Torsten Curdt <email@hidden>)

  • Prev by Date: NSPopUpButton setPreferredEdge
  • Next by Date: Re: NSTrackingArea message lag
  • Previous by thread: Re: description and proxy objects
  • Next by thread: Re: description and proxy objects
  • Index(es):
    • Date
    • Thread