Re: Image (or view ?) not scaling with window
Re: Image (or view ?) not scaling with window
- Subject: Re: Image (or view ?) not scaling with window
- From: vinai <email@hidden>
- Date: Wed, 3 Jun 2009 08:26:32 -0700 (PDT)
--- On Wed, 6/3/09, Keary Suska <email@hidden> wrote:
> From: Keary Suska <email@hidden>
> Subject: Re: Image (or view ?) not scaling with window
> To: "Cocoa-Dev (Apple)" <email@hidden>
> Date: Wednesday, June 3, 2009, 9:50 AM
>
> On Jun 3, 2009, at 7:45 AM, vinai wrote:
>
>> I've run into a case where an image I am creating does
>> not scale with its parent window. Some background - I
>> am trying to create and application to process data stored
>> within a file - much like any image data with a
>> header. However, I am not opening anything with a
>> standard image format.
>>
>> ...
>>
>> The problem is, when I grab the edge of the window to
>> resize it, the image that's drawn to it does not reisze with
>> the parent window. It maintains its original size, and
>> stays centered in the window view.
>
> What happens when you set image scaling for the NSImageView?
>
> Keary Suska
> Esoteritech, Inc.
> "Demystifying technology for your home or business"
That works! Setting [myView setImageScaling: NSScaleToFit] works
perfectly.
I have the document pages for NSWindow, NSImage, NSImageView,
NSImageRep all open in front of me. Talk about not seeing the
forest for the trees ...
Thanks Keary!
vinai
_______________________________________________
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