• 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: Re: New bindings for NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: New bindings for NSArrayController


  • Subject: Re: Re: New bindings for NSArrayController
  • From: "Jim Thomason" <email@hidden>
  • Date: Thu, 16 Nov 2006 14:43:48 -0600

There isn't sufficient information provided to offer a decent solution but I
can recommend a couple approaches:

1 If you have a model object that "owns" the array that is the content of
the account detail arraycontroller, firstObject could be a property of the
model that you bind to through the account arraycontroller, presuming that
the array content is dependent on that controller's selection, as in a
master-detail interface. You could either set up a dependent key trigger on
the content array for use the setFirstObject: accessor.

That is exactly what I needed. I got rid of firstObject in NSArrayController and instead added in firstLineItem to my managed account object. I got hung up a little bit initially, since it's coredata and I only (AFAIK) have access to a mutable set, but relaying through the set's allObjects list was just the ticket.

So I seem to be in business now.

Thanks,

-Jim....
_______________________________________________
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: 
 >New bindings for NSArrayController (From: "Jim Thomason" <email@hidden>)
 >Re: New bindings for NSArrayController (From: Keary Suska <email@hidden>)

  • Prev by Date: IOKit notifications
  • Next by Date: Re: NSTextField & Hidden Binding Problem
  • Previous by thread: Re: New bindings for NSArrayController
  • Next by thread: Filtering files in NSOpenPanel that NSAppleScript can run
  • Index(es):
    • Date
    • Thread