[baseten-users] BXDatabaseContext usage
Réjean Lamy
rejean.lamy at mac.com
Tue May 19 16:43:00 EEST 2009
Le 09-05-19 à 09:32, Erik Aderstedt a écrit :
> 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).
>
We can access object instance variables directly with KV. No ?
> 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.
When using multiple nibs, I'am passing the databaseContext via
IBoutlet to the nibs File's Owner.
>
> Regards,
> Erik Aderstedt
> Aderstedt Software AB
>
>
> _______________________________________________
> baseten-users mailing list
> baseten-users at lists.basetenframework.org
> http://lists.basetenframework.org/mailman/listinfo/baseten-users
More information about the baseten-users
mailing list