• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom NSWindow and NSWindowDidResignKeyNotification AND NSWindowDidResignMainNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: how should I go about downloading files
  • Next by Date: Re: "hooking" into another app
  • Previous by thread: Forced Refreshing of WebKit
  • Next by thread: NSMenuItem view bug with status bar menu
  • Index(es):
    • Date
    • Thread