• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dates via the Java-Bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Dates via the Java-Bridge
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: Error with Creating new Webobjects Java Class file
  • Next by Date: Re: Dates via the Java-Bridge
  • Previous by thread: RE: Content management system
  • Next by thread: Re: Dates via the Java-Bridge
  • Index(es):
    • Date
    • Thread