redrawing a particular subview in non mainWindows.
redrawing a particular subview in non mainWindows.
- Subject: redrawing a particular subview in non mainWindows.
- From: jon <email@hidden>
- Date: Sun, 27 Sep 2009 08:04:29 -0600
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 (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