Bug in NSImageCell scaling?
Bug in NSImageCell scaling?
- Subject: Bug in NSImageCell scaling?
- From: Jeffrey J Barbose <email@hidden>
- Date: Fri, 31 Dec 2004 01:19:32 -0800
In my app I have a table view with one column containing images
(NSImageCell specified in IB)
I've added an NSSlider to my view to all the user to adjust the size of
the images in that column.
I have the action set up for the slider something like:
{
[self setRowHeight:newSize];
[imagesTableColumn setWidth:newSize];
}
When I have the NSImageCell set to scale "to fit", the images get
stretched to fill the square area and they grow and shrink as expected.
when I set the NSImageCell's scaling to "proportional", the images no
longer scale beyond their initial size to get larger. (they do scale
down when smaller than the initial size). However, the images do
behave according to their image alignment properties.
For example, the initial bounds are 90x90 and any given image draws
proportionally in that space. If i shrink the size to, say, 32x32, the
image scales down. If i expand the size to 200x200, i only get a 90x90
image that's aligned to the center of the 200x200 space.
Any help would be appreciated. I haven't filed a bug yet, pending
responses I get here.
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden