• 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
Re: Dates via the Java-Bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dates via the Java-Bridge


  • Subject: Re: Dates via the Java-Bridge
  • From: Art Isbell <email@hidden>
  • Date: Fri, 31 Jan 2003 16:23:16 -1000

On Friday, January 31, 2003, at 02:20  PM, Ricardo Strausz wrote:

I am trying to develope a Cocoa EOF app (WO5.2) in OSXS 10.2.

Venturing where few dare tread :-)

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.

If you add the "Value Class (Obj-C)" column to the attributes view in EOModeler, the Objective-C value class that corresponds to Java's NSTimestamp is NSCalendarDate. I'd try that instead of NSDate.


Art
http://homepage.mac.com/aisbell/
_______________________________________________
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.

References: 
 >Dates via the Java-Bridge (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: Dates via the Java-Bridge
  • Next by Date: RE: Content management system
  • Previous by thread: Dates via the Java-Bridge
  • Index(es):
    • Date
    • Thread