• 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
NSScrollView's content view doesn't un-hide
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScrollView's content view doesn't un-hide


  • Subject: NSScrollView's content view doesn't un-hide
  • From: Scott Hamilton <email@hidden>
  • Date: Wed, 25 Feb 2009 16:28:03 -0800

1. I have an NSScrollView created in IB which contains a custom view and only a vertical scroller.

2. I programmatically add subviews to the custom view's clip view with a block of code. The scroll view is displayed, the subviews all work, life is good.

3. Next, under appropriate conditions, I hide the scroll view and create other controls over the top of the hidden scroll view.

4. Next, under further appropriate conditions, I remove the added controls and recreate the scroll view with subviews with the same block of code in 2 above.

5. The scroll view with its vertical scroller REAPPEARS but without displaying the custom view and clip view containing the subviews. If I just click anywhere on the scroll bar, or the scroller trough, poof - the controls in the custom view reappear instantly.

I've tried all the mechanisms of setNeedsDisplay, displayIf..., setInitialFirstResponder, etc., etc. all the way from the clip view up through the window's content view and window but that scroll view content just won't reappear. It's as if the [myScrollView setHidden:YES] has disconnected the content view from the responder chain and then somehow gets reattached and displayed when clicking on the scroller knob but isn't when rebuilding the content view programmatically.

Am I missing something?

Thanks in advance...

Scott Hamilton


_______________________________________________

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: NSScrollView's content view doesn't un-hide
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Observing Managed Object Changes. Was: Strange ... behavior
  • Next by Date: Re: Observing Managed Object Changes. Was: Strange ... behavior
  • Previous by thread: Re: Simple text encryption
  • Next by thread: Re: NSScrollView's content view doesn't un-hide
  • Index(es):
    • Date
    • Thread