Re: keeping a view at a given aspect ratio?
Re: keeping a view at a given aspect ratio?
- Subject: Re: keeping a view at a given aspect ratio?
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 3 Jun 2002 11:02:25 -0700
On Saturday, June 1, 2002, at 05:44 PM, Michael B. Johnson wrote:
So I've got an NSMovieView and I want to make sure that it
never gets resized at a different aspect ratio than the movie
that it's showing.
What's the best way to accomplish this? I'm thinking of both
the obvious this-is-the-only-view-in-a-resizable-window case as
well as one where the view is one of many on a panel.
I can think of doing things with delegates and constraining the
window's size in the first case, but the second one isn't
obvious (at least to me) as to how to proceed.
For the second case, you can override -setBoundsSize: .
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.