Re: NSScrollView Tiger v Leopard
Re: NSScrollView Tiger v Leopard
- Subject: Re: NSScrollView Tiger v Leopard
- From: Martin Wierschin <email@hidden>
- Date: Wed, 21 Jan 2009 18:08:54 -0800
Add _tableScrollView to _browserScrollView
Gah! Why?
Why not?
Because a scroll view only has one view you should be manipulating,
the scroll view's document view:
"NSScrollView instances provide scrolling services to its document
view. This is the only view that an application must provide a scroll
view"
See:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
NSScrollViewGuide/Articles/Basics.html#//apple_ref/doc/uid/TP40003461-
SW1>
You can't just add arbitrary subviews to a scroll view and hope
things work out. You either want to have a single scroll view whose
document view you swap out, or swap out the whole scroll view.
~Martin
_______________________________________________
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