• 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
Is there a way to access other controller square's other icons programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there a way to access other controller square's other icons programmatically?


  • Subject: Is there a way to access other controller square's other icons programmatically?
  • From: Daryle Walker <email@hidden>
  • Date: Thu, 23 Mar 2017 21:44:24 -0400

I used to use a single view controller, in a storyboard, with all the controls/views laid out, including any object/array controllers in the top bar along with the view-controller reference and the first responder icon. Now I moved to a network of view controllers, i.e. split- and tab-view-controllers. This means that the various parts can’t access each other anymore. I have a custom window controller class with a reference to the model and an object controller that points to the model. Since the view controller tree is fixed, I can walk it and keep references to each view controller. While walking the tree, I make the model’s object controller the represented-object for each view controller (with Cocoa Bindings). I think each view controller has a reference to its top view; this means I can walk each controller for the individual scroll, clip, and table/text views.

Now the view controller that contains the table view also has an array controller connecting the table to the model’s object controller. When walking the controller tree, how can I get a reference to that array controller to store as a property in my window controller class? (Or anything in that top icon strip besides the controller itself) I want to keep referencing the same object & array controllers already allocated when I build my tree of text blocks to support find.

—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

_______________________________________________

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: Is there a way to access other controller square's other icons programmatically?
      • From: Daryle Walker <email@hidden>
  • Prev by Date: How do I set a NSTextView's font in Interface Builder?
  • Next by Date: Re: How do I set a NSTextView's font in Interface Builder?
  • Previous by thread: Re: How do I set a NSTextView's font in Interface Builder?
  • Next by thread: Re: Is there a way to access other controller square's other icons programmatically?
  • Index(es):
    • Date
    • Thread