[baseten-users] BXDatabaseContext usage

Erik Aderstedt erik at aderstedt.se
Tue May 19 16:32:27 EEST 2009


Hi!

> 3- Add an NSObject to the nib and change its class to  
> "MyAppController"
> 4- Bind the BXSynchronizedArrayController's  "Database Context"  
> parameter to the MyAppController's "databaseContext" IBOutlet

Correct me if I'm wrong, but you seem to be mixing IBOutlets with  
bindings? If you want to bind the database context of a  
BXSynchronizedArrayController to that of the MyAppController, you  
don't need to specify the databaseContext member as an IBOutlet. What  
you _do_ need to do is to make MyAppController key-value-compliant for  
the key databaseContext, by at least adding a getter method for the  
databaseContext (Obj-C 2.0 properties will do nicely of course).

As was mentioned before; if you have multiple nibs set up in this way  
you'll get a different BXDatabaseContext object in each nib, which is  
probably not what you want.

Regards,
Erik Aderstedt
Aderstedt Software AB




More information about the baseten-users mailing list