• 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: Bindings detail column shows dictionary description, not value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Bindings detail column shows dictionary description, not value (From: Paul Collins <email@hidden>)

  • Prev by Date: CoreData document based app with single source
  • Next by Date: Re: Can I Send Apple Events in Cocoa?
  • Previous by thread: Re: Bindings detail column shows dictionary description, not value
  • Next by thread: Re: makeKeyAndOrderFront
  • Index(es):
    • Date
    • Thread