• 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: binding to a controller not in my nib, how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding to a controller not in my nib, how?


  • Subject: Re: binding to a controller not in my nib, how?
  • From: marquis logan <email@hidden>
  • Date: Fri, 2 Dec 2005 21:05:49 -0500

hey,

you could use a key path through "file's owner" and have multiple array controllers bound to the same content array; it would be beneficial to use kvc compliant accessors to manipulate this array. alternatively you could programatically create an array controller and bind multiple table columns to said controller in code. this would cause the selections across nibs to be synchronized.

regards,

nibs

On Dec 2, 2005, at 8:27 PM, Sean McBride wrote:

Hi all,

I have a nib with:
- a window containing a table view
- an NSArrayController

The array controller and table view are currently bound together. Now,
due to a new feature, the underlying data, the NSArray that the
NSArrayController controls, will be shown by other UI elements that are
not even part of the same NIB. So how can I do this? Where can I put
the NSArrayController? If its not in that NIB, the tableview can't bind
to it. But if its in the NIB, that window will need to be open (which I
don't want).

Must I go through "File's Owner" or "Shared Application" somehow?

Thanks!

--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Mac Software Designer Montréal, Québec, Canada


_______________________________________________
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

_______________________________________________
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
  • Follow-Ups:
    • Re: binding to a controller not in my nib, how?
      • From: "Sean McBride" <email@hidden>
    • Re: binding to a controller not in my nib, how?
      • From: "Sean McBride" <email@hidden>
References: 
 >binding to a controller not in my nib, how? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: How to find a window under the cursor
  • Next by Date: Re: Switching international keyboards programmatically
  • Previous by thread: binding to a controller not in my nib, how?
  • Next by thread: Re: binding to a controller not in my nib, how?
  • Index(es):
    • Date
    • Thread