Re: QTKit: QTMovieView
Re: QTKit: QTMovieView
- Subject: Re: QTKit: QTMovieView
- From: "Douglas A. Welton" <email@hidden>
- Date: Wed, 11 May 2005 14:50:05 -0400
Chris,
The notion that -movieBounds: is only a getter method may be the tripwire in
your logic. If QTMovieView is modeled after NSMovieView (note: this is all
speculation on my part), then I wouldn't expect a -setMovieBounds: method
because there was no -setMovieRect:. the magic occurs based on how that
"getter" method is used.
For NSMovieView, the -movieRect: method was called once (by self), after the
-setMovie method was invoked. In a subclass situation, this gave you, the
programmer, the chance to return an arbitrary rectangle for displaying your
movies. For an example of how to do this, see Tim Monroe's QuickTime
articles (circa winter 2003) at MacTech.com
I suspect that the -movieBounds: method is just a rename of the -movieRect:
method with more accurate (i.e., Cocoa "friendly") nomenclature.
If I'm wrong, you can always use QuickTime's native functions for
manipulating the MovieBox to alter where the movie playing within the view.
later,
douglas
on 5/11/05 1:20 PM, Christian Schneider at email@hidden wrote:
> Douglas,
>
> thanks for your answer.
>
> I was indeed asking how I can place a movie in said arbitrary
> rectangle. You mention movieBounds but that is only a getter method. I
> don't know why there's no setMovieBounds as that would be the logical
> thing as far as I can see.
>
> As to overriding QTMovieView, I suppose if that were the way to go,
> they wouldn't say the movie could be placed in an arbitrary rectangle
> without saying that subclassing was needed, would they?
>
> chris
>
>
> On 5/11/05, Douglas A. Welton <email@hidden> wrote:
>> Chris,
>>
>> If your "How?" question was relating to the fill color, then check out what
>> the documentation has to say about -setFillColor:
>>
>> On the other hand, if your question was about how to place a movie in an
>> arbitrary rectangle, I would suspect that the -movieBounds: method might be
>> your friend. For NSMovieView the -movieRect: method needed to be overridden
>> to accomplish this type of arbitrary-ness. I don't see -movieRect: in the
>> QTMovieView documentation, so I am *ASSUMING* that -movieBounds: functions
>> similarly.
>>
>> If anyone else has better knowledge, speak up now...
>>
>> later,
>>
>> douglas
>>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden