[baseten-users] BaseTen 1.6.1 just released
Jianhua Meng
jh_meng at mac.com
Mon Mar 30 22:50:55 EEST 2009
Thanks Tuukka for the update!
I'm seeing an error on my console when my app launches. It made a
connection with the database, the app appears stuck after running the
following code:
- (void)primeEntities
{
NSError *error = nil;
NSDictionary *allEntities = [[self databaseContext]
entitiesBySchemaAndName:NO error:&error];
if (error == nil) {
NSDictionary *entities = [allEntities objectForKey:[QCXManagedObject
schemaName]];
NSArray *entityNames = [entities allKeys];
for (NSString *entityName in entityNames) {
BXEntityDescription *entityDesc = [entities objectForKey:entityName];
Class entityClass = NSClassFromString([NSString
stringWithFormat:@"QCX%@", entityName]);
[entityDesc setDatabaseObjectClass:entityClass];
}
}
}
This code has worked fine on my own machine and won't work on other
machines I tried. The difference between mine and others is that the I
have the latest schema whereas the other machines don't have the
latest schema. Would the difference explain for this particular error?
What does "doesn't have relationship capability" mean? What would be
likely cause?
Another question: suppose I have two database contexts, contextA and
contextB and the both contain the same underlying Person object.
Suppose I changed the Person object via contextB. What's the best way
to refresh the same object in contextA? In general what is the
mechanism in baseten to refresh the contents of contextA? Is the
synchronization automatic? At some point, I'll need to use multiple
database contexts to manage complex operations. Having a good
understanding of how multiple contexts work will help my design.
Thanks for your tips in advance.
I have question which you could answer, I hope.
On Mar 30, 2009, at 7:44 AM, Tuukka Norri wrote:
> Hi all!
>
> We just released BaseTen 1.6.1. It fixes some issues left in version
> 1.6, perhaps the most notable being a bug in generic connection
> panels, if a host was specified in the initial database URI. The
> complete release notes have been posted to the download page: http://basetenframework.org/wiki/Download
>
> All feedback is appreciated.
> --
> Best regards,
> Tuukka Norri
> MK&C
>
>
> _______________________________________________
> baseten-users mailing list
> baseten-users at lists.basetenframework.org
> http://lists.basetenframework.org/mailman/listinfo/baseten-users
Regards,
Jianhua Meng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basetenframework.org/pipermail/baseten-users/attachments/20090330/253c3713/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 1.png
Type: image/png
Size: 4778 bytes
Desc: not available
URL: <http://lists.basetenframework.org/pipermail/baseten-users/attachments/20090330/253c3713/attachment.png>
More information about the baseten-users
mailing list