Delegate method of QTMovieView
Delegate method of QTMovieView
- Subject: Delegate method of QTMovieView
- From: Ivan Scott <email@hidden>
- Date: Mon, 4 Feb 2008 10:12:59 +0000
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