Re: Delegate method of QTMovieView
Re: Delegate method of QTMovieView
- Subject: Re: Delegate method of QTMovieView
- From: "douglas a. welton" <email@hidden>
- Date: Mon, 4 Feb 2008 11:36:55 -0500
Hi Ivan,
I haven't had any issues working with this delegate method. I usually
set the delegate method manually:
[Current_MovieView setDelegate: Delegate_Object];
and the delegate method is called like a charm.
Have you taken a look at the MyMovieFilter sample code? This sample
was designed to demonstrate the use of the QTMovieView delegate
method. You may find some of the comments within the code insightful.
regards,
douglas
On Feb 4, 2008, at 5:12 AM, Ivan Scott wrote:
Hello everyone.
As one of the released code headstarts shows, we can use a
NSDocument subclass to be the delegate of the QTMovieview. After
implement the following method:
"- (CIImage *)view:(QTMovieView *)view willDisplayImage:(CIImage
*)image"
we can use some filter to manipulate the incoming CIImage and output
it. Pretty good.
However, I found this method is somehow odd. There are two things I
can't understand.
1. In the interface builder, I drag a QTMovieview from the controls
library and drop to my nib file. Assuming there is a controller
named "QTDelegate", I choose the QTMovieView and control-drag a line
the "QTDelegate", however, the popup menu doesn't appear. It seems
that the interface builder isn't aware that the QTMovieview can have
a delegate.
2. Now that we can't set up the delegate of the QTMovieview, it
should be implemented in the code. What' more odd, I create a very
simple project with a controller. In its "awakeFromNib" method, I
provide itself to be the delegate of the QTMovieview instance, and
implement it as follows:
"- (CIImage *)view:(QTMovieView *)view willDisplayImage:(CIImage
*)image{
NSLog(@"here");
return image;
}"
Yes, there is lots of "here" flowing out of Console.
When I used this method to one of my previous projects(it's based on
10.5). IT DIDN'T WORK!!! I am sorry, but I don't think any line of
my previous code is related to the delegate method. In fact, the
"here" never show at the console.
So, I am wondering the delegate is unavailable at what condition?
Because there is not much document concerning about the usage of
this delegate.
Thank you very much for any help. Good Luck.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden