Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in NSImageCell scaling?



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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.