Re: WebObjects 5.2.4
Re: WebObjects 5.2.4
- Subject: Re: WebObjects 5.2.4
- From: David Teran <email@hidden>
- Date: Mon, 9 May 2005 20:39:36 +0200
On 01.05.2005, at 07:51, Art Isbell wrote:
On 30.04.2005, at 02:32, David LeBer wrote:
<http://developer.apple.com/documentation/WebObjects/Reference/API/
changes.html>
On Apr 30, 2005, at 6:33 PM, David Teran wrote:
It would habe been nice if the unsupported methods in NSArray from
the list interface would habe been implemented in NSMutableArray,
same thing with NSDictionary. No idea why this was not done.
Why do you think that this wasn't done? NSMutableArray inherits
from NSArray, so the no-op List methods in NSArray could have been
overridden by functional versions in NSMutableArray. I guess we'll
have to wait to see for certain.
Fine, very funny. I think this is an inofficial page, not up to date. I
tripple checked the JavaFoundation.jar from WO 5.2.4 update using
pacifist file with FileBrowser and it seems that NSArray does -not-
implement List as mentioned in the docs. This is very sad. I wish i
could write stuff like this:
for(EOEnterpriseObject currentEo : studio.movies())
currentEo.CallAMethod()
instead of
for (Enumeration e = studio.movies(); e.hasMoreElements();) {
EOEnterpriseObject currentEo = (EOEnterpriseObject)e.nextElement();
currentEo.CallAMethod();
}
This is new in Java 5 (besides some other nice things) but only works
with Objects that implement Iterable.
I really can't understand it: since apple introduced WO5 its java, its
so supereasy to implement List, Map, Iterable and such simple
interfaces and it could help us developers - a lot -, testing these
implementations is done within, ok, lets be generous 5 days. And boom,
nothing happened since WO5, nothing although they did a lot since
WO5.0, really. But please Apple please implement these interfaces,
although its a bit ugly because List and Iterable do not know about the
differences between an NSArray and an NSMutableArray.
wishing christmas comes soon, David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden