How does NSScrollView really work?
How does NSScrollView really work?
- Subject: How does NSScrollView really work?
- From: HAEUPL Friedrich - RTAA <email@hidden>
- Date: Tue, 3 Jul 2001 12:35:29 +0200
How can I display (audio-) data in a view with a horizontal scroller?
I was experimenting a little bit on the weekend.
1) In IB I put a CustomView to the window
2) I subclassed NSView --> myView
3) I grouped myView into a ScrollView (Menu....)
4) I selected myView and resized it, while the outer ScrollView kept the same size
--> the scrollers of the outer ScrollView are adjusted to the amount of the actual inner view.
What I want to do, is to display (parts of) an audiofile. So if I have 20 million samplepoints
it is no good idea to resize the inner myView. What I think is that I need something
like a cache that is actually displayed, but then the scrollers may not represent the extention
of the inner view. The horizontal scroller must be proportional to the relation of the
displayed points to the number of samples in the file.
How can this be done?
Regards, fritz