Re: Example of a custom NSScrollView document views ? [Correction]
Re: Example of a custom NSScrollView document views ? [Correction]
- Subject: Re: Example of a custom NSScrollView document views ? [Correction]
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 2 Jan 2002 20:00:14 +0100
On Wednesday, January 2, 2002, at 07:28 PM, Ondra Cada wrote:
Stephane,
Stephane Sudre (SS) wrote at Wed, 2 Jan 2002 19:11:37 +0100:
SS> I'm currently looking for a sample code showing how to create a
custom
SS> View which supports being embedded in a NSScrollView.
Well, here's the sample:
=== cut here ===
=== that's all ===
Which means that just *any* view can be embedded in an NSScrollView,
thanks
to the fact that it actually uses an NSClipView and origin changes to
scroll
Ok, the description was flawed (or bad).
I'm looking for sample code showing how to draw a view which has the
same scrolling properties as the NSTableView content view or the view
used in IB to display the various instances of objects (or the Finder
Icon view for instance).
I'm interested in seeing how one can indicate the scrolling values to
the NSScrollView "container" view (without resizing the view).
I was said to look at Sketch but Sketch is definitely not a good sample
on this particular sub-topic.