• 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: Adding scroll bars to a custom NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding scroll bars to a custom NSView


  • Subject: Re: Adding scroll bars to a custom NSView
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 10 Apr 2007 00:54:04 -0400


On Apr 9, 2007, at 9:41 PM, Matt Ball wrote:

Enclose it in an NSScrollView. In OS X, scrollbars are provided by a
scrollView, not by the main view itself.

See
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSScrollView_Class/Reference/Reference.html

Specifically, NSScrollView's setDocumentView: method.


actually, I'd suggest first reading the Scroll View Programming Guide for Cocoa

http://developer.apple.com/documentation/Cocoa/Conceptual/NSScrollViewGuide/index.html#/ /apple_ref/doc/uid/TP40003221

it has examples of this explicitly.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Adding scroll bars to a custom NSView (From: Mohannad Hashem <email@hidden>)
 >Re: Adding scroll bars to a custom NSView (From: "Matt Ball" <email@hidden>)

  • Prev by Date: Re: compiletime errors in Release but not Debug for Foundation Tool
  • Next by Date: Detecting Click Location in NSOutlineView
  • Previous by thread: Re: Adding scroll bars to a custom NSView
  • Next by thread: Re: Adding scroll bars to a custom NSView
  • Index(es):
    • Date
    • Thread