Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Sergio10

macrumors regular
Original poster
Oct 3, 2007
137
0
Hello!
I use Carbon API.
How to implement event catcher? When user drag seek in QuickTime player, I want catch this event and to disable seek. How to do it? Please give me some simple code or link to source. I will happy very much) I already wrote about event manager but not understood about it.
Please help me.

P.S. AppleScript is not responsible for this.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Does the player even send an event? I'd be very surprised. And even if it does I'm 99% sure you will not be able to stop it. The even would be for information only. If you want to effect the player you'd have to embed a Quicktime player/view in your application and act as a delegate (in Cocoa) to influence it.

If that is what you have done then sorry, but that's not what your post sounds like!
 

Sergio10

macrumors regular
Original poster
Oct 3, 2007
137
0
I know that Event Manager do it. But I do not know if it hav a influences to QuickTime player.( Maybe it is only for applications which can create and than to catch events from it
 

Nutter

macrumors 6502
Mar 31, 2005
432
0
London, England
The Event Manager is for processing user events in your application. It can't intercept arbitrary events that occur in other applications.
 

MongoTheGeek

macrumors 68040
I know that Event Manager do it. But I do not know if it hav a influences to QuickTime player.( Maybe it is only for applications which can create and than to catch events from it

The problem is setting up a delegate.

One thing you can do to partially stop people from scrubbing is

tell application "QuickTime Player"
set controller type of document 1 to none
start document 1
end tell

There are still ways around it though. You may have to just bite the bullet and write your own player. In cocoa, it is almost trivial.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.