• 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
Need Help With NSScrollView & possible NSClipView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need Help With NSScrollView & possible NSClipView


  • Subject: Need Help With NSScrollView & possible NSClipView
  • From: email@hidden
  • Date: Fri, 23 Sep 2005 17:11:24 +0000

I need some help coding to views in Cocoa/Obj-C, specifically, NSView, NSScrollView & NSClipView.

What I want to do is be able to programmatically scroll an NSView inside an NSScrollView. What I've done is create my NSView, and placed that in an NSSCrollView. I did all this in Interface Builder.

Now if I allow the scrollbars to be visible I can scroll my NSView around so I know this part is working. What I want to do is keep the bars invisible and scroll the view in code using the scrollToPoint: method. My problem is how do I do this in code?

I've tried using the scrollToPoint: method in my NSScrollView's drawRect method but that didn't work. Do I need to make a controller class, then assign outlets to my views?

Do I need to explicitly define an NSClipView?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Need Help With NSScrollView & possible NSClipView
      • From: David Thibodeau <email@hidden>
  • Prev by Date: Re: COCOa Complete reference
  • Next by Date: Re: cocoa scripting: selection
  • Previous by thread: RE: How do I upload data to a FTP server?
  • Next by thread: Re: Need Help With NSScrollView & possible NSClipView
  • Index(es):
    • Date
    • Thread