• 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
Re: NSScrollView Tiger v Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSScrollView Tiger v Leopard (From: David Blanton <email@hidden>)
 >Re: NSScrollView Tiger v Leopard (From: Kyle Sluder <email@hidden>)
 >Re: NSScrollView Tiger v Leopard (From: David Blanton <email@hidden>)

  • Prev by Date: Re: NSScroller buttons not scrolling?
  • Next by Date: Re: Custom Cocoa Component/Control
  • Previous by thread: Re: NSScrollView Tiger v Leopard
  • Next by thread: Strange behaviour UITableView
  • Index(es):
    • Date
    • Thread