Re: not getting window delegate messages
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.