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: Mon, 28 Jul 2003 12:06:56 -0700
On Sun, 27 Jul 2003 22:48:04 -0700, Matheau Dakoske
<email@hidden> said:
>
>
>
> 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:)
I think that must be it. Where did you learn this? I'd like to
file a bug against the documentation, but if it's in the
documentation somewhere the bug would be me. On the other hand
I also regard this as a bug in the framework. Now that there is
moveableByWindowBackground, a window without a titlebar can
easily be moved (without my having to write my own
mouseDown/mouseUp code, which is what I used to do), so it
should fire these notifications. 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.