Re: Referencing objects instantiated in Interface Builder
Re: Referencing objects instantiated in Interface Builder
- Subject: Re: Referencing objects instantiated in Interface Builder
- From: Tobias Niehues <email@hidden>
- Date: Mon, 17 Apr 2006 10:38:27 +0200
http://borkware.com/quickies/one?topic=Bindings
Manually creating a binding
[imageView bind: @"valuePath"
toObject: imagesController
withKeyPath: @"selection.fullPath"
options: nil];
In Interface Builder, "Bind To" corresponds to imagesController,
"Controller Key" would be selection, and "Model Key Path would be
fullPath.
Use
[imageView unbind: @"valuePath"];
to remove a binding.
Am 17.04.2006 um 10:29 schrieb Matteo Manferdini:
Hi everyone.
I was looking for a way to reference objects instantiated in
Interface Builder. I have a TableView and a Custom view that need
to be bound to the same controller instance (in a master-detail
way, to use the selected item information). The TableView is easily
bound in interface builder, but how can i bind my custom view by code?
Thanks a lot.
Cheers.
---
Matteo Manferdini
_______________________________________________
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
Tobias Niehues
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