• 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 window not getting delegate notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom window not getting delegate notifications


  • Subject: Custom window not getting delegate notifications
  • From: John Scalo <email@hidden>
  • Date: Wed, 27 Nov 2002 22:56:56 -0800

Hi,

I have a custom window for which I call [self setDelegate:self] during the
initWithContentRect method. However, the window's delegate methods such as
windowDidBecomeKey, windowDidBecomeMain, etc never get called. According to
the docs, "an NSWindow's delegate is automatically registered for all
notifications that it has methods for" so it seems they should work.

Now I know I could explicitly register for those notifications with
NSNotificationCenter, but that's not ideal because I'll get notifications
for every window, not just this one.

FWIW, I did search the archives and found one identical question with no
answers.

Thanks!
John
_______________________________________________
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.

  • Follow-Ups:
    • Re: Custom window not getting delegate notifications
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Light DB Question
  • Next by Date: Re: Foolish question about NSStrings
  • Previous by thread: Re: Writing apps without IB...
  • Next by thread: Re: Custom window not getting delegate notifications
  • Index(es):
    • Date
    • Thread