• 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
Delegate method of QTMovieView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Delegate method of QTMovieView
      • From: "douglas a. welton" <email@hidden>
  • Prev by Date: Use of Mac OS X 10.5 / Leopards Garbage Collection Considered Harmful
  • Next by Date: Re: Use of Mac OS X 10.5 / Leopards Garbage Collection Considered Harmful
  • Previous by thread: Re: Use of Mac OS X 10.5 / Leopards Garbage Collection Considered Harmful
  • Next by thread: Re: Delegate method of QTMovieView
  • Index(es):
    • Date
    • Thread