Re: Which datatype? NSMutableArray, Vector, Array ???
Re: Which datatype? NSMutableArray, Vector, Array ???
- Subject: Re: Which datatype? NSMutableArray, Vector, Array ???
- From: Jonathan Rochkind <email@hidden>
- Date: Wed, 17 Sep 2003 10:42:28 -0500
At 08:38 AM 9/17/2003 +0200, Kaj Hejer wrote:
Yes, ofcource. You can use ArrayList. The only trouble with that is that
WORepetition and other WO* elements does not take Collections for their
bindingelements. Maybe in WO6? :)
Are you sure? I'd try this out, actually. I was surprised to note at one
point that WORepetition _did_ take Object[] arrays, even though it's not
documented to. I don't know enough about 'standard' Java to even know what
an ArrayList is, but it's possible that WORepetition accepts it, undocumented.
Still, Kaj is right that you're probably better off using NSArrays and
NSDictionaries for your collections in WO, since that's generally what the
WO framework wants to work with. But if you really insist upon using
'standard' Java collections of various kinds, you can probably make it
work, with extra effort and experimentation, and acceptance of the fact
that you're sometimes going to have to convert it into an NSArray or
NSDictionary for some framework method.
--Jonathan
My last email contained a serious error. NSMutableArray can't contain
primitives. Sorry about that!
-Kaj :)
_______________________________________________
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.
_______________________________________________
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.