• 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: Avoiding bouncing up when resizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoiding bouncing up when resizing


  • Subject: Re: Avoiding bouncing up when resizing
  • From: Cyril Godefroy <email@hidden>
  • Date: Fri, 1 Feb 2002 10:12:17 +0100

Michhle,

I'd create my own CustomView from NSMovieView ` la QuicktimePlayer: when resizing, I'd just show the rect that the new view would take and when mouse is released, I'd redraw the NSMovieView inside it. By the way, I'm gonna have to do it. So if you don't mind sharing, we could share this part of code. It is a feature that would find it's place in qtkit (http://www.sourceforge.net/projects/qtkit), which has flaws at the moment.

I'd also post the same question on quicktime-api list.

On vendredi, fivrier 1, 2002, at 08:28 , Michhle Garoche wrote:

Hello,

I'm trying to resize a movie (e.g could be film, image, QTVR or sound) into an NSMovieView and its window according to whatever magnification.

The view and its window are defined in IB. Margins are 20 pixels.

When the movie is loaded, it is drawn in its view with magnification 1. Then the user can resize it, but the resizing is made proportional to the size of the movie at magnification 1 and the top left corner must be the same as before resizing.

How can I avoid bouncing up when resizing (is offscreen drawing possible in Cocoa and how)? I've tried setAspectRatio, but I cannot have the view well centered with 20 pixels margin in the window.


References: 
 >Avoiding bouncing up when resizing (From: Michèle Garoche <email@hidden>)

  • Prev by Date: iPhoto Hack
  • Next by Date: Re: ProgressIndicator: Chasing Arrow missing in cocoa?
  • Previous by thread: Avoiding bouncing up when resizing
  • Next by thread: Cocoa registering signal handlers
  • Index(es):
    • Date
    • Thread