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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to