• 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: NSMatrix bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMatrix bindings


  • Subject: Re: NSMatrix bindings
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 24 Mar 2011 10:11:57 -0500

On Mar 24, 2011, at 2:51 AM, Christian Ziegler wrote:

> so I tried it the way Ken described it. However if I start the app, the Matrix is empty. I created the Matrix and all Cells with their titles in IB, assuming that these objects will be created after the nib was loaded. The arrayControllers class type is set to NSString.
>
> Other checkboxes (NSButtons) in my GUI which I set to "On" in IB are also "Off" after starting the app, so it seems that values set in IB are not being set on the model as an initial value. Can anybody confirm that or am I doing something wrong?

It sounds like you're expecting to use IB to populate your model based on how you set up the view.  That's not how it works.  Loading a NIB doesn't (and shouldn't) adjust your model.  If there are bindings, then the view reads its settings from the model (via the controller layer) upon being loaded and displayed.  You need to set up the model data independently, perhaps programmatically or perhaps by loading from a data file or the like.

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >NSMatrix bindings (From: Christian Ziegler <email@hidden>)
 >Re: NSMatrix bindings (From: Ken Thomases <email@hidden>)
 >Re: NSMatrix bindings (From: Christian Ziegler <email@hidden>)

  • Prev by Date: Re: Exporting and Importing CoreData
  • Next by Date: Re: Exporting and Importing CoreData
  • Previous by thread: Re: NSMatrix bindings
  • Next by thread: Re: Help: XCode 3.2 breaks XCode 3.1 projects
  • Index(es):
    • Date
    • Thread