• 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
NSPanel delegate not receiving notifications such as (windowWillClose)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPanel delegate not receiving notifications such as (windowWillClose)


  • Subject: NSPanel delegate not receiving notifications such as (windowWillClose)
  • From: Tod Cunningham <email@hidden>
  • Date: Fri, 23 Jul 2004 01:34:20 -0400

I have an NSPanel with a delegate set. I have verified that the delegate is set, but the delegate isn't receiving notifications such as:

- (void)windowDidBecomeKey:(NSNotification *)aNotification
- (void)windowWillClose:(NSNotification *)aNotification

Is there any reason why a NSPanel will not receive notifications? The delegate is setup in interface builder, and I verified that in the init method that the delegate object is of the type I expected. However, the notifications don't seem to get received.

This is driving me nuts... The delegate for the main window work great. I do register my own observer for NSViewFrameDidChangeNotification, and that notification is received. Is there something about setting up that notification that breaks the window's delegate?

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(bandInUseMatrixResized:)
name:NSViewFrameDidChangeNotification
object:bandInUseMatrix];

Thanks,

- Tod
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Sending Shell Commands (Modified by John C. Warner)
  • Next by Date: Why can't I do commit inside Xcode?
  • Previous by thread: Re: Sending Shell Commands (Modified by John C. Warner)
  • Next by thread: Why can't I do commit inside Xcode?
  • Index(es):
    • Date
    • Thread