• 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
Re: keeping a view at a given aspect ratio?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >keeping a view at a given aspect ratio? (From: "Michael B. Johnson" <email@hidden>)

  • Prev by Date: Re: Kernel Convolution...
  • Next by Date: Is there a setting in and application bundle so icon will not show in taskbar.
  • Previous by thread: Re: keeping a view at a given aspect ratio?
  • Next by thread: Re: keeping a view at a given aspect ratio?
  • Index(es):
    • Date
    • Thread