• 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
Working Programmatically with Bound Controller's Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Working Programmatically with Bound Controller's Selection


  • Subject: Working Programmatically with Bound Controller's Selection
  • From: "William T. McVay" <email@hidden>
  • Date: Wed, 27 Mar 2013 11:14:21 -0700

In my XIB, I have a pop-up button bound to an array controller that is bound to an NSMutableArray in my NSWindowController subclass instance. I added both the pop-up and the array controller in IB. Selection works, and I can use bindings to display the selected object's property values, as discussed helpfully in this list.

In my window controller methods, I want to access the object the user selects via the pop-up, using the selection (or selected objects) method (as in "Working With a Controller’s Selection"), but I do not know the name of the array controller for this purpose. (Maybe I am overlooking something obvious. If so, sorry for the dumb question.) How do I refer to the array controller by name in my source code?

Thanks,

Tom

W. T. McVay,  (707) 987-6567
email@hidden, www.putahcreek.com
Hidden Valley Lake, CA 95467





_______________________________________________

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: Working Programmatically with Bound Controller's Selection
      • From: William Sumner <email@hidden>
  • Prev by Date: updating attributes in a UITextView
  • Next by Date: Re: Working Programmatically with Bound Controller's Selection
  • Previous by thread: updating attributes in a UITextView
  • Next by thread: Re: Working Programmatically with Bound Controller's Selection
  • Index(es):
    • Date
    • Thread