Re: NsTableView and the form view.
Re: NsTableView and the form view.
- Subject: Re: NsTableView and the form view.
- From: Sean Murphy <email@hidden>
- Date: Sat, 16 Dec 2006 11:16:07 -0500
On Dec 16, 2006, at 2:13 AM, Sandro Noel wrote:
i have a winow, that has a TableView, and under that table view i
have Text fields that describe
the selected item in the table view.
...
since this is a different Object that has no reference to the
window controller, i'm having a hard time
assigning the title of the textfields.
Hi Sandro,
It sounds like you're describing the classic "master-detail"
interface. Even though you have already started on an approach to
solving this, you may want to consider using Cocoa Bindings for the
implementation. Bindings are very appropriate for this kind of
situation and will really eliminate a ton of glue-code, so I strongly
recommend using them.
On the other hand, if your application still requires compatibility
with 10.2, or if you'd rather not stray away from the approach you
have already begun, maybe post some code or describe the problem in
more detail. Generally, if you're having trouble communicating among
and coordinating data between several objects, that could be a strong
indication that the classes need to be re-structured and their
relationships re-examined.
If you give bindings a try, here's some well-written documentation
from Apple:
Cocoa Bindings: Master-Detail Interfaces: <http://developer.apple.com/
documentation/Cocoa/Conceptual/CocoaBindings/Tasks/masterdetail.html>
Cocoa Bindings Programming Topics: <http://developer.apple.com/
documentation/Cocoa/Conceptual/CocoaBindings/index.html>
Sorry I didn't help your original problem.
Hope this helps, nonetheless.
- Sean
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden