[baseten-users] How to use a single BXDatabaseContext object with multiple nib files
Réjean Lamy
rejean.lamy at mac.com
Mon May 18 20:53:28 EEST 2009
That was one solution I have tried but with no success ( i.e.
resulting with weirds problems with fetch, add/remove to relationships
etc..):
BXDatabaseContext instance the app delegate class with the resulting
ctx made available to nibs via and IBOutlet that can be accessed in
each nib File's Owner.
The resulting ctx avaible in each nib is connected to the BX Sync
Array controller using the "databaseContext" binding parameter.
Rejean Lamy
Le 09-05-18 à 13:15, Daniel Brajkovic a écrit :
> Can't you simply instantiate the database controller in an object
> shared by your nibs such as an appController class?
>
> Daniel Brajkovic
>
> Sent from iPhone.
>
> On May 18, 2009, at 12:10 PM, Réjean Lamy <rejean.lamy at mac.com> wrote:
>
>> Hi
>>
>> I would like to know how to use a _single_ BXDatabaseContext object
>> connected with multiple BXSynchronizedArrayControllers located in
>> many nib files.
>>
>> My app is made of several nib files, each one handling different
>> window with tables, buttons etc..
>> Each nib file include the needed BXSynchronizedArrayControllers and
>> actually I must also include a BXDatabaseContext object in each nib
>> file.
>>
>> The problem is that all of these BXDatabaseContext must be changed
>> manually to the correct URI. Also, it will be more efficient to my
>> app handling a single point of connection to the db.
>>
>> Thanks.
>>
>> Rejean Lamy
>>
>>
>>
>>
>>
>> _______________________________________________
>> baseten-users mailing list
>> baseten-users at lists.basetenframework.org
>> http://lists.basetenframework.org/mailman/listinfo/baseten-users
>
> _______________________________________________
> 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