Commit d9f5aad2 authored by darin's avatar darin
Browse files

Apply a simplified technique I learned while working on the Favorites button

	class in the browser code.

        * Plugins.subproj/WebBaseNetscapePluginView.m:
        (-[WebBaseNetscapePluginView start]): Use the NSViewFocusDidChangeNotification
	to track the plugin rectangles instead of the NSViewFrameDidChangeNotification
	and NSViewBoundsDidChangeNotification on all the superviews.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c586f262
2002-10-11 Darin Adler <darin@apple.com>
Apply a simplified technique I learned while working on the Favorites button
class in the browser code.
* Plugins.subproj/WebBaseNetscapePluginView.m:
(-[WebBaseNetscapePluginView start]): Use the NSViewFocusDidChangeNotification
to track the plugin rectangles instead of the NSViewFrameDidChangeNotification
and NSViewBoundsDidChangeNotification on all the superviews.
2002-10-11 John Sullivan <sullivan@apple.com>
 
* Resources/url_icon.tiff: new generic URL icon -- no more @!
......
2002-10-11 Darin Adler <darin@apple.com>
Apply a simplified technique I learned while working on the Favorites button
class in the browser code.
* Plugins.subproj/WebBaseNetscapePluginView.m:
(-[WebBaseNetscapePluginView start]): Use the NSViewFocusDidChangeNotification
to track the plugin rectangles instead of the NSViewFrameDidChangeNotification
and NSViewBoundsDidChangeNotification on all the superviews.
2002-10-11 John Sullivan <sullivan@apple.com>
 
* Resources/url_icon.tiff: new generic URL icon -- no more @!
......
......@@ -449,15 +449,10 @@ -(void)start
NSWindow *theWindow = [self window];
NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
NSView *view;
for (view = self; view; view = [view superview]) {
[notificationCenter addObserver:self selector:@selector(viewHasMoved:)
name:NSViewFrameDidChangeNotification object:view];
[notificationCenter addObserver:self selector:@selector(viewHasMoved:)
name:NSViewBoundsDidChangeNotification object:view];
}
[notificationCenter addObserver:self selector:@selector(viewHasMoved:)
name:NSViewFocusDidChangeNotification object:self];
[notificationCenter addObserver:self selector:@selector(windowWillClose:)
name:NSWindowWillCloseNotification object:theWindow];
name:NSWindowWillCloseNotification object:theWindow];
[notificationCenter addObserver:self selector:@selector(windowBecameKey:)
name:NSWindowDidBecomeKeyNotification object:theWindow];
[notificationCenter addObserver:self selector:@selector(windowResignedKey:)
......@@ -663,7 +658,7 @@ - (void)viewWillMoveToWindow:(NSWindow *)newWindow
- (void)viewDidMoveToWindow
{
if (![self window]){
if (![self window]) {
[self stop];
}
......@@ -675,8 +670,6 @@ - (void)viewDidMoveToWindow
-(void)viewHasMoved:(NSNotification *)notification
{
[self setUpWindowAndPort];
// reset the tracking rect
[self resetTrackingRect];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment