RE: Binding to Accessors of Application Delegate
RE: Binding to Accessors of Application Delegate
- Subject: RE: Binding to Accessors of Application Delegate
- From: "Christopher Hickman" <email@hidden>
- Date: Fri, 19 May 2006 14:55:33 -0400
> > 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:
This email sent to email@hidden