I've got a Document type program,

the windows are structured like this:

Window -> ContentView -> SplitView -> two CustomViews -> one of them is Bordered Scroll view (outlineView) ->Outline View

i have one instance of Outline View called myOutlineView, so no matter how many documents are displayed on the screen, there is only one myOutlineView instance,

the current "mainWindow" updates the myOutlineView just fine when i make a change to this one instance, but i want to "redraw" or update the Outline View of all the other open documents that can be seen so they also match (on screen) the one instance of myOutlineView. in code they already do match. so they just need "updated".

so far i can find the chain of windows, like this, but i can't figure out how to go deeper into them to be able to udpate the custom view down deep.... maybe i'm approaching it wrong too...

any help would be great, (the setHidden is just there as a test, it is there so i know i've found the correct window, and eventually the correct subview)
thanks,
Jon.

        IBOutlet NSOutlineView          *myOutlineView;
------------------------------------------------------------------------------


        NSArray *theWindowsArray = [NSApp orderedWindows];
        NSWindow *theWindow = [theWindowsArray objectAtIndex:1];

        theContentView = [theWindow contentView];

//--------- i need to find the split view of "theContentView" and then the outline view of that one side of the split view ---------//

        [theContentView setHidden:YES];



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to