• 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
NSArrayController and tables: the "All" item and indirect relationship sets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController and tables: the "All" item and indirect relationship sets


  • Subject: NSArrayController and tables: the "All" item and indirect relationship sets
  • From: Davide Benini <email@hidden>
  • Date: Sat, 10 Sep 2005 16:29:56 +0200

Hello to all the folks in this list.
Before asking my first question I'll introduce myself; not sure it's the policy here, but just in case...
I am PhD candidate in University of Verona, Italy. I study Irish literature, and in particular the influence of the oral tradition on contemporary writing. Coding and building websites is a hobby; cocoa obj-c is my first attempt after many years; some ten years ago, as a teen, I toyed with variousa basics, pascal and the glorious AMOS on Amiga.
Now I am building a reference database. It's a bit more complex than the average book database, since it records also passages and topic- key for them; it's like a card-index, targeted at academic scholars and researchers. I developed such a database with filemakerl; now I want to make a native cocoa application, and I've just started implementing it. The engine in itself works well, thanks to the core- data architecture. I am presently building an iTunes-like interface to browse through keys-books-passages (in this order, from left to right), using cocoa bindings.
Now, the questions(s):


1) The "All" item
I have to implement the "All" item, to select all keys, all books, ect. What is the neatest way to do that? I thought about subclassing the NSArrayController, but it's just a vague idea... Can anyone give me some hint, or point me to a useful example?


2) Bindings for "Indirect relationships"
The relationship scheme of my core data model is:
books <-->> passage <<-->> topic
Yet my browser follows the order topic - book - passage.
The relationship between books and topics is not direct; for this reason I cannot use the simple contentSet binding in the book NSArrayController. Of course I could subclass NSArrayController and override add a method that yelds a NSSet of books that contains passages related to a given topic... Is this the smartest way to do that? I am trying to write as little code as possible, and rely on bindings...


Thank you very much for your attention; any suggestion is welcome.
Davide Benini
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: How To Design A Queue of Messages?
  • Next by Date: Re: How To Design A Queue of Messages?
  • Previous by thread: Re: How To Design A Queue of Messages?
  • Next by thread: Value snapping and NSSlider
  • Index(es):
    • Date
    • Thread