Re: Scrolling Thumbnails (Like Preview)
Re: Scrolling Thumbnails (Like Preview)
- Subject: Re: Scrolling Thumbnails (Like Preview)
- From: Seth Willits <email@hidden>
- Date: Sun, 10 Aug 2003 00:23:42 -0700
Can anyone give me some pointers on how to create a scrolling
thumbnail
viewer with the same functionality in Preview? I could really use all
the help I can get.
Can I use a table view for this?
Use a single column NSTableView and set the cell for that column to an
NSImageCell.
Like Doug suggested, I used a NSTableView to do this, however I can't
see a way to display the image a desired size or an associated string.
It seems that Matt's suggestion to use an NSMatrix would be a solution
but more complex than the TableView if I could get it to work.
So using an NSMatrix, I assume the process would be creating an NSCell
subclass, implementing a new initializer to accept a string and an
image which would set two instance variables, and then overriding -
(void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView
*)controlView and drawing it how I want. Is this right? Seems
reasonable but more involved than I'd like. Especially since I haven't
done very much drawing.
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine -
http://www.rbdeveloper.com
Webmaster for REALbasic Game Central -
http://www.freaksw.com/rbgames
"In the eyes of others, spending a lifetime chasing a dream is often
seen
as a lavish waste of a one-time gift, but maybe the joy isn't solely in
its catching, but also in its pursuit."
-- Seth Willits
------------------------------------------------------------------------
---
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.