Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MCSetActionFilterWithRefCon in Cocoa



Hi,

Thanks to some responses to my previous question, I have discovered that I
need to implement a movie controller action filter in my program. However, I
can't seem to get it to work properly (yet).

Here's the relevant code from my awakeFromNib function:


MCActionFilterWithRefConUPP myUPP =
NewMCActionFilterWithRefConUPP(&MyActionFilter);

ComponentResult err = MCSetActionFilterWithRefCon([movieView
movieController], myUPP, 0);


I've set the movie in my NSMovieView and called EnterMovies() earlier in
awakFromNib.

My filter function simply prints out the action number, then returns false
so far.

MCSetActionFilterWithRefCon() always returns an error, though. And, I'm not
too sure how to interpret the number that is set to err. My action filter
function never gets called.

I've tried looking at Technical Q&A QA1094, "Intercepting movie controller
actions", but it used the function NewMCActionFilterWithRefConProc which I
couldn't find. I also looked at some old MacTech articles, but I don9t think
I'm doing anything wrong.

Does anyone have any suggestions why this isn't working?

Thanks,

King Chung Huang
Learning Commons
University of Calgary
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.