• 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
redrawing a particular subview in non mainWindows.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: redrawing a particular subview in non mainWindows.
      • From: Jens Alfke <email@hidden>
    • Re: redrawing a particular subview in non mainWindows.
      • From: Graham Cox <email@hidden>
  • Prev by Date: Snow Leopard, core data, read only and multiple threads
  • Next by Date: Re: redrawing a particular subview in non mainWindows.
  • Previous by thread: re: Snow Leopard, core data, read only and multiple threads
  • Next by thread: Re: redrawing a particular subview in non mainWindows.
  • Index(es):
    • Date
    • Thread