Custom NSWindow and NSWindowDidResignKeyNotification AND NSWindowDidResignMainNotification
Custom NSWindow and NSWindowDidResignKeyNotification AND NSWindowDidResignMainNotification
- Subject: Custom NSWindow and NSWindowDidResignKeyNotification AND NSWindowDidResignMainNotification
- From: vance <email@hidden>
- Date: Mon, 14 Apr 2008 14:02:38 -0700
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 (email@hidden)
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:
This email sent to email@hidden