Re: Is there a way to access other controller square's other icons programmatically?
Re: Is there a way to access other controller square's other icons programmatically?
- Subject: Re: Is there a way to access other controller square's other icons programmatically?
- From: Daryle Walker <email@hidden>
- Date: Fri, 24 Mar 2017 14:11:16 -0400
I have a re-explaination, including a picture, at <http://stackoverflow.com/questions/43002809/how-do-i-access-the-top-level-objects-of-a-storyboard-scene-programmatically>.
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
> On Mar 23, 2017, at 9:44 PM, Daryle Walker <email@hidden> wrote:
>
> 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.
_______________________________________________
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