Scrolling NSView without scrollbars
Scrolling NSView without scrollbars
- Subject: Scrolling NSView without scrollbars
- From: "Dr. Scott Steinman" <email@hidden>
- Date: Thu, 3 Jan 2002 06:57:06 -0600
Sorry. I sent this from the wrong account.
-Scott Steinman
From: Scott Steinman <email@hidden>
Date: Thu Jan 03, 2002 06:12:43 AM US/Central
To: email@hidden
Subject: Scrolling NSView without scrollbars
I need to be able to store a large image in an NSView, so that I can
display different sections of the image programmatically and therefore
continuously scroll the contents of the view. When reading the NSView
documentation, it suggests that the NSView frame and bound sizes can be
different, so that a large image can be placed in a smaller NSView.
However, Interface Builder enforces the same size for the frame and
bounds, preventing me from making the image larger than the visible
region of the view.
As a Cocoa newbie, I assume I'm just overlooking something incredibly
simple. I'd appreciate some help.
Thank you.
Scott Steinman
email@hidden