Re: NSDates, NSTimestamps and the Java-bridge
Re: NSDates, NSTimestamps and the Java-bridge
- Subject: Re: NSDates, NSTimestamps and the Java-bridge
- From: Art Isbell <email@hidden>
- Date: Fri, 16 May 2003 11:54:57 -1000
On Friday, May 16, 2003, at 11:08 AM, Ricardo Strausz wrote:
Therefore, even I am writing in ObjC, I can only use those methods
defined for such a class; in this case
'qualifierWithQualifierFormat(String format, NSArray arguments)'...
since this method recives two arguments, it is supposed to be called,
from ObjC, by qualifierWithQualifierFormat:(NSString*)format
:(NSArray*)arguments.
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?
If not, you can build your qualifier using EOQualifier subclasses
instead. qualifierWithQualifierFormat: is just a shortcut method for
EOQualifier subclass methods.
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.
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.
Unfortunely, Cocoa/EO development is still full of inconcistencies...
That's why pioneers like you exist :-)
Aloha,
Art
_______________________________________________
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.