• 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: Popups Binding problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Popups Binding problem


  • Subject: Re: Popups Binding problem
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 21 Nov 2008 01:14:07 -0600

On Nov 20, 2008, at 8:02 AM, Kiran Kumar S wrote:

I have two popups which I want to bind together; the first popup
contains a list of Categories, which has an array of reports. The
reports array is a content array of the second popup.

I want to select a Category in the first popup and get a list of
reports in the second popup. When user changes a Category, the popup
updates with the corresponding list.

When I open the APP, the popups are populated correctly,
but the second one (with employees) doesn't update after Category
change.
Please Suggest me if any ideas

The selectedIndex binding of the first pop-up should be bound to the selectionIndex property of the NSArrayController. Then, the content of the second pop-up should be bound through the selection property of that NSArrayController. You may want to put a second array controller between the first array controller and the second pop-up, to manage the resulting employees array.


There's an example of an arrangement similar to this here, although this example uses a table for the first selection and doesn't make the first selection binding explicit: http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/WhatAreBindings.html#/ /apple_ref/doc/uid/20002372-181136

Cheers,
Ken

_______________________________________________

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


References: 
 >Popups Binding problem (From: Kiran Kumar S <email@hidden>)

  • Prev by Date: Re: Wrapping C functions in Objective C proxy objects: naming convention?
  • Next by Date: Re: Autorelease Question
  • Previous by thread: Popups Binding problem
  • Next by thread: Which Mac models use the new 64-bit Objective-C ABI?
  • Index(es):
    • Date
    • Thread