[baseten-users] DatabaseObjectClass unable to set

Michael Ruepp michael at ruepp.at
Fri Oct 9 19:10:20 EEST 2009


Hi there,

I am also unable to set the Database Object Class for a Entity.

It works on the Synchronized Array Controller well with the  
"setDatabaseObjectClassName:(NSString*)name"

but with the setDatabaseObjectClass:(Class)aClass" I get always errors.

I tried this:

			Class GroupsBO;

			
			BXEntityDescription* entity = [context_ entityForTable: @"groups"  
error: NULL];
			[entity setDatabaseObjectClass:GroupsBO];
then I get:

09.10.09 17:58:34	FSRV_RW_01[6632]	-[BXEntityDescription  
isSubclassOfClass:]: unrecognized selector sent to instance 0x200052c00
09.10.09 17:58:34	FSRV_RW_01[6632]	-[BXEntityDescription  
isSubclassOfClass:]: unrecognized selector sent to instance 0x200052c00


When I do this:		//Class GroupsBO;

			
			BXEntityDescription* entity = [context_ entityForTable: @"groups"  
error: NULL];
			[entity setDatabaseObjectClass:GroupsBO];

i get the Error:
  error: expected expression before 'GroupsBO'

This error I got also when I used the setDatabaseObjectClass:(Class) 
aClass on a BXSyncArrayController.

The respective .h File is imported, and it makes no difference if I  
use a @class GroupsBO; in my .h file


Thanks,


Mike





			


_________________
michael ruepp
michael at ruepp.at
fon +41 76 593 04 49
skype michaelruepp

CONFIDENTIALITY NOTICE
This message (including any attachments transmitted with it) contains  
confidential information and is intended only for the individual named  
herein. If you are not the herein named addressee you should not  
disseminate, distribute, copy or otherwise make use of this message.  
Please notify the sender immediately by e-mail if you have received  
this message by mistake, and delete it from your systems.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basetenframework.org/pipermail/baseten-users/attachments/20091009/7dccf2c6/attachment.htm>


More information about the baseten-users mailing list