• 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: Help with NSArrayController, NSTableView and NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Help with NSArrayController, NSTableView and NSOpenPanel


  • Subject: RE: Help with NSArrayController, NSTableView and NSOpenPanel
  • From: "Kamrin Dahlin" <email@hidden>
  • Date: Fri, 23 Jun 2006 11:51:47 -0700
  • Thread-topic: Help with NSArrayController, NSTableView and NSOpenPanel

Thanks again George,

I will give it a shot -- I think it is starting to make sense to me, but I can be thick as a brick sometimes.

Regards,

k


-----Original Message-----
From: George Orthwein [mailto:email@hidden]
Sent: Fri 6/23/2006 11:47 AM
To: Kamrin Dahlin
Cc: email@hidden
Subject: Re: Help with NSArrayController, NSTableView and NSOpenPanel

You can achieve what you want by following the MailDemo example...
instead of Mailboxes and Emails, you have directoryModels and
directoryContents, so create another NSArrayController to manage the
directoryContents array (set it up like the Emails controller).
http://cocoadevcentral.com/downloads/MailDemo-000084-end.zip
http://cocoadevcentral.com/articles/000084.php

But now I'm confused as you about your original question. Take the
MailDemo example... I played around with it and I can't figure out
why this binding for a table column doesn't work:
Mailboxes->selection->emails.properties.address

When this line in the controller gets the array fine:
NSLog(@"log: %@",[mailBoxController
valueForKeyPath:@"selection.emails.properties.address"]);

Apparently, "mailboxes.selection.emails" is KVO compliant, but
"mailboxes.selection.emails.properties" is not.

I don't know enough to explain exactly why. Maybe someone can clear
this up and we'll both learn something. :)

George

 _______________________________________________
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

References: 
 >Help with NSArrayController, NSTableView and NSOpenPanel (From: Kam Dahlin <email@hidden>)
 >Re: Help with NSArrayController, NSTableView and NSOpenPanel (From: George Orthwein <email@hidden>)
 >RE: Help with NSArrayController, NSTableView and NSOpenPanel (From: "Kamrin Dahlin" <email@hidden>)
 >Re: Help with NSArrayController, NSTableView and NSOpenPanel (From: George Orthwein <email@hidden>)
 >RE: Help with NSArrayController, NSTableView and NSOpenPanel (From: "Kamrin Dahlin" <email@hidden>)
 >Re: Help with NSArrayController, NSTableView and NSOpenPanel (From: George Orthwein <email@hidden>)

  • Prev by Date: Re: Help with NSArrayController, NSTableView and NSOpenPanel
  • Next by Date: Problem with NSWindowController subclass
  • Previous by thread: Re: Help with NSArrayController, NSTableView and NSOpenPanel
  • Next by thread: RE: Help with NSArrayController, NSTableView and NSOpenPanel
  • Index(es):
    • Date
    • Thread