I am dynamically (at runtime) creating an NSWindow instance with the following code:

        pullDownWindow = [[NSWindow alloc]
                initWithContentRect:[view bounds]
                styleMask:  
NSBorderlessWindowMask|NSTexturedBackgroundWindowMask
                backing:NSBackingStoreBuffered
                defer:YES];
                
        [pullDownWindow setHasShadow: YES];
        [pullDownWindow setAlphaValue: 0.95];
        [pullDownWindow setOpaque: 0.9];

        [pullDownWindow setContentView: pullDownView ];

But I am not receiving NSWindowDidResignKeyNotification or NSWindowDidResignMainNotification notifications when I create the window dynamically.

However I do receive the 2 notification if I create the a regular default window using IB.

Am I forgetting to set something on the pullDownWindow instance?

Thanks in advance!
Vance
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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