Re: not getting window delegate messages
Re: not getting window delegate messages
- Subject: Re: not getting window delegate messages
- From: matt neuburg <email@hidden>
- Date: Sun, 27 Jul 2003 19:32:08 -0700
On 7/27/03 at roughly 6:18 PM, thus spake Nick Zitzmann
<email@hidden>:
>
On Sunday, July 27, 2003, at 05:56 PM, matt neuburg wrote:
>
>
> I am an object named MyObject. When the user drags my
>
> window around with the mouse, I am not getting window
>
> delegate messages such as windowDidChangeScreen: and
>
> windowDidMove:. I can confirm that I am in fact the
>
> window's delegate (my setDelegate: command to the window
>
> succeeded, I can log on mouseDown and see that I am the
>
> delegate, etc.). Therefore I presume I'm up against some
>
> secret, undocumented issue. Now the problem is to guess
>
> what it is. Are these messages, perhaps, sent only by
>
> certain kinds of window? (For example, my window
>
> isMovableByWindowBackground; could that make a
>
> difference?) Or maybe they don't work at all? Or
>
> something?
>
>
Did you open the window in the main thread, or in some other thread?
Oooooh, this could be it. I create the window (entirely in code) in the
main thread, but the command to make it visible for the first time is done
using a delayed perform of makeKeyAndOrderFront. (That is necessary for
other reasons too complicated to explain here.) Does that make a diff? m.
--------
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.