Re: Binding to Accessors of Application Delegate
Re: Binding to Accessors of Application Delegate
- Subject: Re: Binding to Accessors of Application Delegate
- From: Mike Abdullah <email@hidden>
- Date: Fri, 19 May 2006 23:05:40 +0100
Oops. I misread that.
I thought that there was a method called that returned a dictionary.
And that one of the keys of the dictionary was "com.apple.desktop."
Didn't realise that that string was actually the argument!
Mike.
On 19 May 2006, at 21:48PM, mmalcolm crawford wrote:
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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