FROM : Kamrin Dahlin
DATE : Fri Jun 23 20:51:47 2006
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:george.<email_removed>]
Sent: Fri 6/23/2006 11:47 AM
To: Kamrin Dahlin
Cc: <email_removed>
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
DATE : Fri Jun 23 20:51:47 2006
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:george.<email_removed>]
Sent: Fri 6/23/2006 11:47 AM
To: Kamrin Dahlin
Cc: <email_removed>
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
| Related mails | Author | Date |
|---|---|---|
| Kam Dahlin | Jun 22, 22:43 | |
| George Orthwein | Jun 23, 04:31 | |
| Kamrin Dahlin | Jun 23, 04:50 | |
| George Orthwein | Jun 23, 15:45 | |
| Kamrin Dahlin | Jun 23, 17:33 | |
| George Orthwein | Jun 23, 20:47 | |
| Kamrin Dahlin | Jun 23, 20:51 | |
| Kamrin Dahlin | Jun 23, 23:58 | |
| Kam Dahlin | Jun 24, 01:15 | |
| Scott Anguish | Jun 24, 08:20 |






Cocoa mail archive

