Dates via the Java-Bridge
Dates via the Java-Bridge
- Subject: Dates via the Java-Bridge
- From: Ricardo Strausz <email@hidden>
- Date: Fri, 31 Jan 2003 18:20:58 -0600
Hola a todos!
I am trying to develope a Cocoa EOF app (WO5.2) in OSXS 10.2. When
inserting a new eo, I want to set a property (called `fecha') which
stores the moment of creation. I tried the following code:
[dg insert]; // dg is the DisplayGroup
eo = [dg selectedObject];
[eo setFecha:[NSDate date]];
but it returns the following error:
2003-01-31 18:12:35.292 CTalma[1167] *** NSRunLoop: ignoring exception
'java/lang/ClassCastException' (reason
'com.apple.cocoa.foundation.NSDate') that raised during delayed perform
of target 547344 and selector '_processEndOfEventNotification:'
I suppose it is becouse in the object generated by EOModeler
(Tarticulo.java) the key 'fecha' is handled as an NSTimestamp. But on
the other hand, if I try, e.g.
...
[eo setFecha:[NSTimestamp new]];
then the code simply does not compile. How shall I assign such a
property???
Any sugestion will be wellcome,
Dino
http://homepage.mac.com/strausz
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.