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

Re: not getting window delegate messages


  • Subject: Re: not getting window delegate messages
  • From: Matheau Dakoske <email@hidden>
  • Date: Sun, 27 Jul 2003 22:48:04 -0700

On Sunday, July 27, 2003, at 10:00 PM, email@hidden wrote:

That is bizarre. However, I changed it to open the window in the main
thread and I'm still not getting these delegate methods. I also changed it
so that I explicitly register for these notifications; now I get them from
the *other* windows in my app, but not from the window I *want* to get them
from.

Does anyone know what would cause a window not to emit willMove and didMove
notifications at all? Is it that the window has no titlebar? Is it that it
is movableByWindowBackground? I've overridden canBecomeKeyWindow and
canBecomeMainWindow but it doesn't help. Have I, perhaps, actually found a
bug? m. Funny you should mention this. I just ran into a long, long night with this very same problem.

I finally read somewhere, and it proves true for my instance, that a window must have a title bar to receive delegate method calls. (i.e. your code created window must have NSTitledWindowMask set for its styleMask:)

Hope this helps.

Regards,
Matheau
--
Code Line Communications
http://www.code-line.com/software
_______________________________________________
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: Getting rid of "hidden" fonts
  • Next by Date: Re: NSSavePanel Example
  • Previous by thread: Re: not getting window delegate messages
  • Next by thread: Re: not getting window delegate messages
  • Index(es):
    • Date
    • Thread