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

keeping a view at a given aspect ratio?


  • Subject: keeping a view at a given aspect ratio?
  • From: "Michael B. Johnson" <email@hidden>
  • Date: Sat, 01 Jun 2002 17:44:57 -0700

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.

Certainly other people must have faced this? I deal with this in my own stuff where I draw images in a view by just drawing the image at the correct aspect ratio in the view, regardless of the view's size (and have black bars on top or bottom, say), but since NSMovieView is controlling the display of the image, I'm at a loss...

Sure seems a flag one should be able to set in NSMovieView, but I don't see anything in the header (hmm, maybe I'll file a sug...).


--> Michael B. Johnson, Ph.D. -- email@hidden
--> Studio Tools, Pixar Animation Studios
--> http://xenia.media.mit.edu/~wave
_______________________________________________
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.

  • Follow-Ups:
    • Re: keeping a view at a given aspect ratio?
      • From: "John C. Randolph" <email@hidden>
    • Re: keeping a view at a given aspect ratio?
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: Re: isa
  • Next by Date: Re: Cocoa programming book question
  • Previous by thread: Re: about_header_files
  • Next by thread: Re: keeping a view at a given aspect ratio?
  • Index(es):
    • Date
    • Thread