forked from enlightenment/efl
ecore_cocoa: fix compile error using 10.15 SDK
This commit is contained in:
parent
e88311ae95
commit
51e4bcc32c
|
@ -9,6 +9,7 @@
|
||||||
Ecore_Timer *_timer;
|
Ecore_Timer *_timer;
|
||||||
NSDate *_expiration;
|
NSDate *_expiration;
|
||||||
Ecore_Cocoa_Terminate_Cb _terminate_cb;
|
Ecore_Cocoa_Terminate_Cb _terminate_cb;
|
||||||
|
BOOL _is_running;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSDate *)eventExpirationDate;
|
- (NSDate *)eventExpirationDate;
|
||||||
|
|
|
@ -45,8 +45,7 @@ _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
|
||||||
|
|
||||||
- (void)internalUpdate
|
- (void)internalUpdate
|
||||||
{
|
{
|
||||||
[_mainMenu update];
|
[[self mainMenu] update];
|
||||||
// FIXME Will not compile with GNUStep (member is named "_main_menu")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)init
|
- (id)init
|
||||||
|
@ -72,11 +71,16 @@ _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
|
||||||
return _expiration;
|
return _expiration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)isRunning
|
||||||
|
{
|
||||||
|
return _is_running;
|
||||||
|
}
|
||||||
|
|
||||||
- (void)run
|
- (void)run
|
||||||
{
|
{
|
||||||
[self finishLaunching];
|
[self finishLaunching];
|
||||||
|
|
||||||
_running = 1;
|
_is_running = YES;
|
||||||
_expiration = [NSDate distantPast];
|
_expiration = [NSDate distantPast];
|
||||||
|
|
||||||
_timer = ecore_timer_add(ECORE_COCOA_MAINLOOP_PERIOD,
|
_timer = ecore_timer_add(ECORE_COCOA_MAINLOOP_PERIOD,
|
||||||
|
|
Loading…
Reference in New Issue