• 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: NSDates, NSTimestamps and the Java-bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDates, NSTimestamps and the Java-bridge


  • Subject: Re: NSDates, NSTimestamps and the Java-bridge
  • From: Ricardo Strausz <email@hidden>
  • Date: Fri, 16 May 2003 19:37:20 -0500

Java doesn't support methods with a variable number of arguments as do C-based languages. Does the Java-ObjC bridge support using a Java method that maps to an ObjC method with a variable number of > arguments?

Good question! I do not know... I will find out and let you know.


Here is the problem: first, there are two NSArrays, one from Cocoa and
the other from Webobjects and they ARE NOT COMPATIBLE (e.g., one uses
nextObject and the other nextElement in their objectEnumerators);

That's not necessarily an incompatibility of the arrays. ObjC NSArray's objectEnumerator returns an NSEnumerator object whereas Java NSArray's objectEnumerator() returns a Enumeration object. If this is a problem, you can iterate the old-fashioned way with a for loop.

That's not any more a problem (once you find out). But they are really not compatible; I mean, in the Java side, if a method expects a com.webobjects.foundation.NSArray (which is what EOF uses) and you pases to it a com.apple.cocoa.foundation.NSArray (the one created by the bridge from the ObjC side) it hangs (with a mistirious SIGBUS 10).



second, NSString and String parse differently NSCalendarDates and
NSTimeStamps, respectively. In ObjC it asks for its "string
description", and in the Java side... I do not know.

ObjC's "description" method is equivalent to Java's "toString()" method.

I know. What I meant is that: in ObjC are equivalent ... @"the date is = %@", myDate than ... @"the date is = %@", [myDate description]

But in Java it seams that it is not the same
..."the time stamp = %@", myTimeStamp
than
... "the time stamp = %@", myTimeStamp.toString()



Unfortunely, Cocoa/EO development is still full of inconcistencies...

That's why pioneers like you exist :-)

How shall I interpret this ;-? God bles the Pandas... ji

Yours,

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.

References: 
 >Re: NSDates, NSTimestamps and the Java-bridge (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: NSPropertyListSerialization
  • Next by Date: Localization
  • Previous by thread: Re: NSDates, NSTimestamps and the Java-bridge
  • Next by thread: (dirty solved): NSDates, NSTimestamps and the Java-bridge
  • Index(es):
    • Date
    • Thread