• 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: Controller introspection API
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controller introspection API


  • Subject: Re: Controller introspection API
  • From: Allan Odgaard <email@hidden>
  • Date: Mon, 1 Mar 2004 15:55:13 +0100

On 1. Mar 2004, at 15:16, Jonathan 'Wolf' Rentzsch wrote:

What then was he asking? Maybe the OP could clarify? or state what he
wants to accomplish.
So long as I'm subclassing, I'd like to make the NSTableView
controller-aware for the purposes of: [...]

You could add an outlet to your table view subclass for the controller. I know that requires one manual connection in IB, in contrast to obtaining the observer/peer -- but in theory the content-binding might not be to an NSArrayController.

[...] Unfortunately, apparently there is currently no public API for getting a NSTableView's content binding.

I think (but I am not sure) that what happens when you bind something together is that an instance of NSBinding (or similar) is created, this object will observe both ends of the binding (i.e. the controller and the table view), and if the value changes in one of these, it will set it on the other object (if it does not already have that value).

So the connection from the table view to the controller goes through a mediator.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Controller introspection API (From: "Jonathan 'Wolf' Rentzsch" <email@hidden>)

  • Prev by Date: Re: Controller introspection API
  • Next by Date: Re: US / British English Localisations
  • Previous by thread: Re: Controller introspection API
  • Next by thread: Re: Controller introspection API
  • Index(es):
    • Date
    • Thread