• 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: 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.

References: 
 >Re: not getting window delegate messages (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Hard Objc-Runtime question: objc_getClassList lies to me...
  • Next by Date: Cells within cells part 2
  • Previous by thread: Re: not getting window delegate messages
  • Next by thread: Re: not getting window delegate messages
  • Index(es):
    • Date
    • Thread