Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
How to wrap display and wrap images in a scroll view
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="wyattbiker" data-source="post: 1445807" data-attributes="member: 272015"><p><strong>How to display and wrap images in a scroll view</strong></p><p></p><p>I want to display a bunch of same size images (such as thumbnails) in rows using a view, left to right and down. When the user resizes the view, I would like to rearrange the images so they are viewable in the larger/smaller view and scroll down if necessary.</p><p></p><p>I was looking to use NSScrollView and NSCollectionView. Do I need to specifically position each image in the view (ie calculate frame offsets) or is there an easier way to do this?</p><p></p><p>Am i using the right classes or is there another class I should be looking at. I would like this to work on Leopard or better although I am using Mountain Lion for coding.</p><p></p><p>Any sample code or links would be appreciated.</p><p></p><p>Thanks <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="wyattbiker, post: 1445807, member: 272015"] [b]How to display and wrap images in a scroll view[/b] I want to display a bunch of same size images (such as thumbnails) in rows using a view, left to right and down. When the user resizes the view, I would like to rearrange the images so they are viewable in the larger/smaller view and scroll down if necessary. I was looking to use NSScrollView and NSCollectionView. Do I need to specifically position each image in the view (ie calculate frame offsets) or is there an easier way to do this? Am i using the right classes or is there another class I should be looking at. I would like this to work on Leopard or better although I am using Mountain Lion for coding. Any sample code or links would be appreciated. Thanks :) [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
How to wrap display and wrap images in a scroll view
Top