Skip to content

Commit

Permalink
add capability of send notifications (using the Alien-ObjC it becomes…
Browse files Browse the repository at this point in the history
… trivial)
  • Loading branch information
estebanlm committed Mar 2, 2017
1 parent 011d412 commit 8f7221f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions platforms/iOS/vm/OSX/SqueakOSXAppDelegate.m
Expand Up @@ -84,11 +84,21 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
[self.squeakApplication setupEventQueue];
[self singleThreadStart];
// [self workerThreadStart];

}


#ifdef PharoVM
[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self];
#endif
}

#ifdef PharoVM
- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center
shouldPresentNotification:(NSUserNotification *)notification
{
return YES;
}
#endif

- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender {
return NO;
}
Expand Down

0 comments on commit 8f7221f

Please sign in to comment.