Re: Changing NSImageView's default background fill color
Re: Changing NSImageView's default background fill color
- Subject: Re: Changing NSImageView's default background fill color
- From: Carl Hoefs <email@hidden>
- Date: Mon, 22 Jun 2015 16:47:19 -0700
> On Jun 22, 2015, at 4:45 PM, Jens Alfke <email@hidden> wrote:
>
>
>> On Jun 22, 2015, at 4:25 PM, Carl Hoefs <email@hidden <mailto:email@hidden>> wrote:
>>
>> I have a (subclassed) NSImageView in an NSWindow, and when it displays an image that doesn’t fit proportionally it will show a mid-gray background fill color around the image, apparently by default.
>
> Did you change the imageFrameStyle to NSImageFrameNone? (Which you can do in IB.)
>
Yes, I just discovered that the above line of code *does* work if the view’s border is set to Bezel (Bezelnut, rah rah!) or None, but not if set to Button, Groove, or Photo.
-Carl
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden