On Nov 6, 2008, at 4:50 PM, [EMAIL PROTECTED] wrote:

At 4:35 PM -0500 11/6/08, Eric Gorr wrote:

How, exactly, did you do this?

I have tried a couple of different things, but nothing seems to be working. If it matters (and I don't see why it should), I actually have a NSPanel.

In my delegate for the NSPanel, as a test, I tried defining:

- (void)windowWillMove:(NSNotification *)notification
{
 NSLog( @"windowWillMove" );
}

but this never gets called. I also defined windowDidMove and that gets called without any trouble. Any idea why windowWillMove would not get called?



Next, in the awakeFromNib method in my controller, I tried calling:

[[NSNotificationCenter defaultCenter] addObserver:myWindow selector:@selector(paletteWindowWillMove:) name:NSWindowWillMoveNotification object:nil];

but, the selector paletteWindowWillMove: in the subclass of my NSPanel, never gets called. Any idea why?

from my NSWindow subclass's awakeFromNib:

[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(beginMove:) name: NSWindowWillMoveNotification object: self];

i have no idea if this will work with panel's, but i would think it would as a panel is a subclass of a window, but you would obviously have to subclass NSPanel instead of NSWindow.

thanks.

Apparently, NSPanel's don't get NSWindowWillMoveNotification's - at least I am not getting them in 10.5.

Perhaps a bug?

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to