• 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: DevReseune <email@hidden>
  • Date: Tue, 11 Nov 2003 07:57:34 +0100

Dino,

You're right. But I don't talk about that. A display group isn't a relationship. It's the result of a fetch. It's very different. My post was about relationship, and only about that. And in this case, a one-to-many relationship is a pure NSSet, and a many-to-many relationship is a unordered NSArray, a mix relation between real NSArray and NSSet.

Dino, do you know Hibernate? Did you read this URL:
http://www.hibernate.org/hib_docs/reference/html/collections.html
If so, you know what I mean.

Frederic with accent and not Fridiric


Le 11 nov. 03, ` 01:25, Ricardo Strausz a icrit :


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.

References: 
 >Re: NSArray is not a NSSet. So why Apple confuse them in EOF? (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: Re: Enterprise Objects and JMS Queues
  • Next by Date: WO User Group?
  • Previous by thread: Re: NSArray is not a NSSet. So why Apple confuse them in EOF?
  • Next by thread: xcode question about errors
  • Index(es):
    • Date
    • Thread