Re: Bindings detail column shows dictionary description, not value
Re: Bindings detail column shows dictionary description, not value
- Subject: Re: Bindings detail column shows dictionary description, not value
- From: "Greg Herlihy" <email@hidden>
- Date: Sat, 10 Dec 2005 02:11:45 -0800
Since the dictionary whose contents are being displayed contains the desired
field, it should be necesssary only to qualify the path one step further:
arrangedObjects.name.name
No, there is no typo: "name" would appear twice since "name" would seem to
be both the key of the dictionary array and a key within each dictionary.
Using distinct names here may help minimize confusion in the future.
Greg
----- Original Message -----
From: "Paul Collins" <email@hidden>
To: "Cocoa Dev" <email@hidden>
Sent: Friday, December 09, 2005 12:24 PM
Subject: Bindings detail column shows dictionary description, not value
In my master-detail interface nib, I've got a master NSArrayController
that seems to be working fine, bound to an array of a custom class
GSFile. In a detail NSTableView, I want to display an array of
NSDictionary held by GSFile called "iRecipients". I've got a second
NSArrayController, bound to the master controller as
contentArray = selection.iRecipients.name [masterController]
A column in my detail table is bound:
arrangedObjects.name [detailController]
When run, instead of showing the name, the detail column shows what looks
like a description of the dictionary in the iRecipients array. Here's
what the "name" cell displays in my view:
{address = "email@hidden"; name = "Paul"; }
I want to just see "Paul" - any suggestions?
--Paul Collins
** Gracion Software LLC http://www.gracion.com/ **
** Tel: +1 (541) 488-3488 iChat/AV/AIM: gracionsoft **
** DigiTunnel 1.4 PPTP/VPN client for OS X **
** Pronto Patent - search/download US patents fast **
** And check out: http://www.opendoor.com/doorstop/ **
_______________________________________________
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
_______________________________________________
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