• 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: Array controller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Array controller?


  • Subject: Re: Array controller?
  • From: Scott Anguish <email@hidden>
  • Date: Sun, 18 Apr 2004 02:45:45 -0400

On Apr 18, 2004, at 12:22 AM, mmalcolm crawford wrote:

On Apr 17, 2004, at 7:10 PM, Ondra Cada wrote:
I have a NIB which contains an NSTable, an NSArrayController, and the
model object (which provides the array).
How to bind the NSArrayController to the array? Its Binding > Content
array allows me to set only Shared user default, File's owner and
Shared application, none of which I want... the model object happens to
be inside the NIB, instantiated there?

You cannot at the moment using Interface Builder bind to arbitrary [non-NSController] objects in a NIB file:
<http://cocoa.mamasam.com/COCOADEV/2004/02/2/85307.php>


true, however...

you could set the content using the outlet rather than the binding.. then you should be OK. otherwise you'd need to do it programatically

(For Ondra) typically, you'd be binding to the File's Owner which would contain the model data.. and that's targetable as a binding controler(
_______________________________________________
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.


  • Follow-Ups:
    • Re: Array controller?
      • From: Allan Odgaard <email@hidden>
References: 
 >Array controller? (From: Ondra Cada <email@hidden>)
 >Re: Array controller? (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: cocoa-dev digest, Vol 2 #4031 - 1 msg
  • Next by Date: Re: NSObjectController and NSDefaultsController Binding?
  • Previous by thread: Re: Array controller?
  • Next by thread: Re: Array controller?
  • Index(es):
    • Date
    • Thread