Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Converted NULL to nil for notifications (mac)
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrekV committed Feb 19, 2018
1 parent b2f9904 commit b57fac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/osx/TogglDesktop/test2/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,11 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification

[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self
selector:@selector(receiveSleepNote:)
name:NSWorkspaceWillSleepNotification object:NULL];
name:NSWorkspaceWillSleepNotification object:nil];

[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self
selector:@selector(receiveWakeNote:)
name:NSWorkspaceDidWakeNotification object:NULL];
name:NSWorkspaceDidWakeNotification object:nil];

[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self];

Expand Down

0 comments on commit b57fac8

Please sign in to comment.