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

Re: Need Help With NSScrollView & possible NSClipView


  • Subject: Re: Need Help With NSScrollView & possible NSClipView
  • From: David Thibodeau <email@hidden>
  • Date: Sat, 24 Sep 2005 09:08:14 -0400

Well, never mind, the solution was incredibly simple. I feel silly for asking my original question. :-)


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:
_______________________________________________
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


References: 
 >Need Help With NSScrollView & possible NSClipView (From: email@hidden)

  • Prev by Date: Delegates and multiple views
  • Next by Date: Returning a Boolean in a NSValueTransformer
  • Previous by thread: Need Help With NSScrollView & possible NSClipView
  • Next by thread: zip compression/decompression SDK
  • Index(es):
    • Date
    • Thread