[vlc-commits] [Git][videolan/vlc][master] macosx: replace deprecated NSEvent type constants
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Apr 22 02:08:45 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
eac4760a by Serhii Bykov at 2026-04-21T19:46:16+00:00
macosx: replace deprecated NSEvent type constants
- - - - -
2 changed files:
- modules/gui/macosx/main/VLCMain.m
- modules/gui/macosx/os-integration/VLCClickerManager.m
Changes:
=====================================
modules/gui/macosx/main/VLCMain.m
=====================================
@@ -216,7 +216,7 @@ void CloseIntf (vlc_object_t *p_this)
}
vlc_preparser_Delete(p_network_preparser);
[NSApp stop:nil];
- NSEvent* event = [NSEvent otherEventWithType:NSApplicationDefined
+ NSEvent* event = [NSEvent otherEventWithType:NSEventTypeApplicationDefined
location:NSMakePoint(0,0)
modifierFlags:0
timestamp:0.0
=====================================
modules/gui/macosx/os-integration/VLCClickerManager.m
=====================================
@@ -167,7 +167,7 @@
- (void)mediaKeyTap:(SPMediaKeyTap*)keyTap receivedMediaKeyEvent:(NSEvent*)event
{
if (b_mediaKeySupport) {
- assert([event type] == NSSystemDefined && [event subtype] == SPSystemDefinedEventMediaKeys);
+ assert([event type] == NSEventTypeSystemDefined && [event subtype] == SPSystemDefinedEventMediaKeys);
int keyCode = (([event data1] & 0xFFFF0000) >> 16);
int keyFlags = ([event data1] & 0x0000FFFF);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/eac4760a00119564974f2108c1dce6d3f5d0650a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/eac4760a00119564974f2108c1dce6d3f5d0650a
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list