Skip to content

Commit ca14d40

Browse files
committed
Event dispatch loop with ObjcApplication
1 parent f15b027 commit ca14d40

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

gst-objc.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
proxy->defineCFunc ("objc_makeSmalltalk", gst_makeSmalltalk);
3131
proxy->defineCFunc ("objc_retain", gst_retain);
3232
proxy->defineCFunc ("objc_release", gst_release);
33-
proxy->defineCFunc ("objc_installSuspendLoop", gst_installSuspendLoop);
34-
proxy->defineCFunc ("objc_installEventLoop", gst_installEventLoop);
33+
proxy->defineCFunc ("objc_installEventLoop", gst_installEventLoop);
3534
proxy->defineCFunc ("gstRectFill", gst_rectFill);
3635
pool = [[NSAutoreleasePool alloc] init];
3736
NSLog (@"Load complete");

gst-objc/ObjcApplication.st

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Object subclass: ObjcApplication [
2121
]
2222

2323
loadNibNamed: aName [
24-
nsApp inspect.
2524
NSBundle loadNibNamed: aName owner: nsApp.
2625
]
2726

@@ -52,14 +51,6 @@ Object subclass: ObjcApplication [
5251
]
5352

5453
run [
55-
|pool|
56-
nsApp setRunning.
57-
nsApp setLaunched.
58-
pool := NSAutoreleasePool alloc init.
59-
nsApp finishLaunching.
60-
pool drain.
61-
"dispLoop := [[self dispatchLoop] whileTrue] forkAt: Processor userSchedulingPriority."
62-
loop := [[self pollEvent] whileTrue] forkAt: Processor highIOPriority.
63-
[(Delay forSeconds: 10000) wait] whileTrue
54+
ObjcRuntime objcInstallEventLoop
6455
]
6556
]

0 commit comments

Comments
 (0)