Re: NSArray is not a NSSet. So why Apple confuse them in EOF?
Re: NSArray is not a NSSet. So why Apple confuse them in EOF?
- Subject: Re: NSArray is not a NSSet. So why Apple confuse them in EOF?
- From: Ricardo Strausz <email@hidden>
- Date: Mon, 10 Nov 2003 18:25:48 -0600
On lunes, novi 10, 2003, at 15:32 America/Mexico_City, Riseune wrote:
A real NSArray is an array where objects have an index. The same
object can be found more than once. So, a NSArray is a ordered list of
objects. In EOF, NSArray is just a collection of objects, not an
ordered list, and an object, in a relationship, can only be found > once.
A NSSet is a unordered list of objects, and an object can be found
only once. But, wait a minute, that's the container of a to-many
relationship in EOF!
I don't think so.
An NSArray which arises, e.g., from a displayGroup.allObjects() is
ordered by an NSSortOrdering, therefore IT IS ORDERED.
Also, in a many-to-many relation, the same object may appear more than
once, therefore THERE ARE REPETITIONS.
=> EOF's NSArray is a *real* Array and not a Set.
Dino
_______________________________________________
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.