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 20:03:15 +0100
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 :(
Mike.
On 19 May 2006, at 19:55PM, Christopher Hickman wrote:
Can I use that cascading syntax for any method without an
argument? I mean, if someAccessor returned a path in an
NSString, could I use the Model Key Path
delegate.someAccessor.lastPathComponent to bind to the last
component of
that path?
This is just normal key-value coding:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Key
ValueCoding/index.html>
That was a great read. Thanks. I read all the Cocoa Bindings
stuff over
and over and never got it. What I needed was this. Thanks.
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?
Topher
_______________________________________________
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