Re: Scrolling Thumbnails (Like Preview)
Re: Scrolling Thumbnails (Like Preview)
- Subject: Re: Scrolling Thumbnails (Like Preview)
- From: Scott Anguish <email@hidden>
- Date: Mon, 11 Aug 2003 00:10:17 -0400
On Sunday, August 10, 2003, at 4:11 AM, Seth Willits wrote:
On Sunday, August 10, 2003, at 12:45 AM, Scott Anguish wrote:
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.
You can set the size of the rows in a TableView.
All I see is setControlSize: which allows for Regular and Small.
Someone else has already pointed you to the correct method.
And you could have two columns.. one with the image, and the other
with the associated string.
I could, but it won't work with the end result that I need. I'd like
to have the string drawn underneath the image in the same cell, and
have the image drawn at a desired percentage.
It's been suggested that an NSButtonCell with the appropriate flags
might work for you. I'd say that, or writing a new cell subclass from
scratch (which is covered in the book) should work for this.
I have your book by the way :) I haven't read a whole lot of it
though. I did read the section on NSTableViews and I was surprised to
see that there wasn't an example of using an image in a TableView.
Well, it's an intermediate book, and that's a beginner subject.. :-)
No, more seriously it just didn't make it in. There is discussion in
the NSOutlineView section about using an NSButtonCell for a column, and
the technique is identical (what with NSOutlineView being a subclass of
NSTableView and all.
More "Cookbook" type examples are making their way into Apple's docs,
and this is one that is on the table. It's a damn big table is all.
Anyway, so is this possible with a table view? The more I look, the
more I'm convinced it isn't.
It is, most definitely doable.
_______________________________________________
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.