Darin made an internal notification have the Web prefix.
authorcblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Oct 2004 23:42:06 +0000 (23:42 +0000)
committercblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Oct 2004 23:42:06 +0000 (23:42 +0000)
        Reviewed by me.

        * Plugins.subproj/WebBaseNetscapePluginView.m:
        (-[WebBaseNetscapePluginView addWindowObservers]):
        (-[WebBaseNetscapePluginView removeWindowObservers]):
        (ConsoleConnectionChangeNotifyProc):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7893 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/Plugins.subproj/WebBaseNetscapePluginView.m

index bfa99fcd63578e6106410d36a5072ff0b0408cee..851c134dbb58314523f05eabe1585a07f648d00d 100644 (file)
@@ -1,3 +1,14 @@
+2004-10-25  Chris Blumenberg  <cblu@apple.com>
+
+       Darin made an internal notification have the Web prefix.
+
+        Reviewed by me.
+
+        * Plugins.subproj/WebBaseNetscapePluginView.m:
+        (-[WebBaseNetscapePluginView addWindowObservers]):
+        (-[WebBaseNetscapePluginView removeWindowObservers]):
+        (ConsoleConnectionChangeNotifyProc):
+
 2004-10-25  John Sullivan  <sullivan@apple.com>
 
         Reviewed by Chris.
index 608381e1818a139a1f9313aca8e72d0143769cdd..384a2b9606a56d72df9fb7b377e6d7732281a850 100644 (file)
@@ -42,8 +42,8 @@ void CallDrawingNotifications(CGrafPtr port, Rect *mayDrawIntoThisRect, int draw
 #define NullEventIntervalActive        0.01
 #define NullEventIntervalNotActive     0.25
 
-#define LoginWindowDidSwitchFromUserNotification    @"LoginWindowDidSwitchFromUserNotification"
-#define LoginWindowDidSwitchToUserNotification      @"LoginWindowDidSwitchToUserNotification"
+#define LoginWindowDidSwitchFromUserNotification    @"WebLoginWindowDidSwitchFromUserNotification"
+#define LoginWindowDidSwitchToUserNotification      @"WebLoginWindowDidSwitchToUserNotification"
 
 
 static WebBaseNetscapePluginView *currentPluginView = nil;
@@ -863,9 +863,9 @@ static OSStatus TSMEventHandler(EventHandlerCallRef inHandlerRef, EventRef inEve
                                name:NSWindowDidDeminiaturizeNotification object:theWindow];
     
     [notificationCenter addObserver:self selector:@selector(loginWindowDidSwitchFromUser:)
-                               name:LoginWindowDidSwitchFromUserNotification object:NSApp];
+                               name:LoginWindowDidSwitchFromUserNotification object:nil];
     [notificationCenter addObserver:self selector:@selector(loginWindowDidSwitchToUser:)
-                               name:LoginWindowDidSwitchToUserNotification object:NSApp];
+                               name:LoginWindowDidSwitchToUserNotification object:nil];
 }
 
 - (void)removeWindowObservers
@@ -878,8 +878,8 @@ static OSStatus TSMEventHandler(EventHandlerCallRef inHandlerRef, EventRef inEve
     [notificationCenter removeObserver:self name:NSWindowDidResignKeyNotification     object:nil];
     [notificationCenter removeObserver:self name:NSWindowDidMiniaturizeNotification   object:nil];
     [notificationCenter removeObserver:self name:NSWindowDidDeminiaturizeNotification object:nil];
-    [notificationCenter removeObserver:self name:LoginWindowDidSwitchFromUserNotification   object:NSApp];
-    [notificationCenter removeObserver:self name:LoginWindowDidSwitchToUserNotification     object:NSApp];
+    [notificationCenter removeObserver:self name:LoginWindowDidSwitchFromUserNotification   object:nil];
+    [notificationCenter removeObserver:self name:LoginWindowDidSwitchToUserNotification     object:nil];
 }
 
 - (BOOL)start
@@ -1785,5 +1785,5 @@ void ConsoleConnectionChangeNotifyProc(CGSNotificationType type, CGSNotification
     } else {
         ASSERT_NOT_REACHED();
     }
-    [[NSNotificationCenter defaultCenter] postNotificationName:notificationName object:NSApp];
+    [[NSNotificationCenter defaultCenter] postNotificationName:notificationName object:nil];
 }