• 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: NSArray is not a NSSet. So why Apple confuse them in EOF?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSArray is not a NSSet. So why Apple confuse them in EOF?
      • From: DevReseune <email@hidden>
  • Prev by Date: <SOLVED???>WOBuilder on Panther, Xcode and WO5.2.2
  • Next by Date: Re: FW: Application Clustering
  • Previous by thread: Re: NSArray is not a NSSet. So why Apple confuse them in EOF?
  • Next by thread: Re: NSArray is not a NSSet. So why Apple confuse them in EOF?
  • Index(es):
    • Date
    • Thread