Hi list, I'm new to Mac/Carbon programming (from a Windows background),
so sorry if these questions are daft ;)
I'm writing a plug-in, where the host software creates a window for my
plug-in to display in, and passes me a GrafPtr.
Now I need to attach a carbon event handler to this window, but
GetWindowEventTarget() returns zero when passed the GrafPtr (presumably
because it needs a WindowRef) -
How can I obtain a WindowRef for the window? (from the GrafPtr?)
Can I get an error code from somewhere when GetWindowEventTarget()
fails? (returns zero)
So I also figured that if I ...