• 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
Running a-foul of bindings with multiple-value subfields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running a-foul of bindings with multiple-value subfields


  • Subject: Running a-foul of bindings with multiple-value subfields
  • From: Erik Stainsby <email@hidden>
  • Date: Tue, 23 Oct 2012 10:09:17 -0700

Hello all,

I am working my way through trying to understand  the correct use of bindings for a non-trivial model.

The model I am working on is derived from the contacts database ABPerson. I am unclear how to bind to the elements of a multiple entry list.

A person has a handful of direct properties: firstName, lastName, organization, image, etc.
There are also three arbitrary length lists of related data:  postal addresses, phone numbers, email addresses.

I have no trouble using  - bind: toObject: withKeyPath: options: for the direct properties.  However, try as I might I can't seem to bind to the elements of lists.

My question is ought I to be using (or subclassing) an arrayController for each of these lists ? And then binding through the selectedIndex or some such ?

I hope this makes enough sense to someone so that they can point me down a lighted path.  My code at the moment is a total mess, hence no samples.

OSX 10.8
XC 4.5.1
This is a learning exercise so no legacy issues.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Running a-foul of bindings with multiple-value subfields
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Open untitled file in Document-based app
  • Next by Date: Re: Memory issues when loading a document
  • Previous by thread: Re: Open untitled file in Document-based app
  • Next by thread: Re: Running a-foul of bindings with multiple-value subfields
  • Index(es):
    • Date
    • Thread