• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bug in NSImageCell scaling?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Subclass Import Issues
  • Next by Date: Displaying the same data with two NSTextViews
  • Previous by thread: Re: Is it possible to draw text to an offscreen view that has no window?
  • Next by thread: Displaying the same data with two NSTextViews
  • Index(es):
    • Date
    • Thread