Re: Binding to Accessors of Application Delegate
Re: Binding to Accessors of Application Delegate
- Subject: Re: Binding to Accessors of Application Delegate
- From: mmalcolm crawford <email@hidden>
- Date: Fri, 19 May 2006 13:48:45 -0700
On May 19, 2006, at 12:03 PM, Mike Abdullah wrote:
On 19 May 2006, at 19:55PM, Christopher Hickman wrote:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Key
ValueCoding/index.html>
[...]
One thing that I'm not seeing is any way to bind to a method that
requires
an argument. Is there any way around that? For example, how
could I bind
to keys in the dictionary returned by the persistentDomainForName:
method
(with the argument @"com.apple.desktop") of the NSUserDefaults object
referenced in Shared User Defaults at Model Key Path defaults?
Well normally you can just use the key of the dictionary:
someObject.someDictionary.myKey
However, if the key itself contains full stops, I'm not sure you
can :(
The issue here is not that a key might require full stops, it's that
the value is not a key -- it's an argument. And you cannot supply an
argument like this in a key path.
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden