Re: NSScrollView's content view doesn't un-hide

2009-02-26 Thread Scott Hamilton

Hi John,

Nope, it was:

[theScrollView setContentView:theClipView];

which reconnects the content view of the scroll view to the responder  
chain (setHidden:YES unhooks it).


Thanks for thinking about it though.

Scott


On Feb 25, 2009, at 9:34 PM, John C. Randolph wrote:



On Feb 25, 2009, at 4:28 PM, Scott Hamilton wrote:


Am I missing something?


From your description, you're sending -setNeedsDispay to the the  
clipview, not to the subviews within the clipview.


-jcr




___

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


Re: NSScrollView's content view doesn't un-hide

2009-02-25 Thread John C. Randolph


On Feb 25, 2009, at 4:28 PM, Scott Hamilton wrote:


Am I missing something?


From your description, you're sending -setNeedsDispay to the the  
clipview, not to the subviews within the clipview.


-jcr

___

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


NSScrollView's content view doesn't un-hide

2009-02-25 Thread Scott Hamilton
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 (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