• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NsTableView and the form view.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NsTableView and the form view.
      • From: Sandro Noel <email@hidden>
References: 
 >NsTableView and the form view. (From: Sandro Noel <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 3, Issue 1410
  • Next by Date: Re: Using ScreenSaverDefaults with NSUserDefaultsController
  • Previous by thread: NsTableView and the form view.
  • Next by thread: Re: NsTableView and the form view.
  • Index(es):
    • Date
    • Thread