• 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: Mike Abdullah <email@hidden>
  • Date: Fri, 27 Jun 2008 11:26:52 +0100


On 27 Jun 2008, at 00:36, Torsten Curdt 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?
Instead of the print out of the contents of the dictionary I am now getting the description of the proxy object.

The selection proxy only acts in a proxy-like manner for KVC/KVO messages; not any general message you might care to send. Alternatives would be:


[[[accountsController selectedObjects] objectAtIndex:0] description];

[[accountsController selection] valueForKey:@"description"];
_______________________________________________

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: Torsten Curdt <email@hidden>
References: 
 >description and proxy objects (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: NSImageView and getting change events
  • Next by Date: Re: Suggestions on how to price an iPhone app for the app store which relies on a central server
  • Previous by thread: Re: description and proxy objects
  • Next by thread: Re: description and proxy objects
  • Index(es):
    • Date
    • Thread