Re: Need Help With NSScrollView & possible NSClipView
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