views:

72

answers:

2

N.B.: this relates to private (SPI) functions of the CoreGraphicServices framework.

I am currently running a CGSConnection to the Windowserver as the UniversalController (with the Dock killed), and would like to know how I can be notified that a CGSWindow has had the yellow minimize blob clicked.

Is there a notification event that I can watch for with CGSRegisterConnectionNotifyProc?

Perhaps the answer lies in HIToolbox? Any experienced CGS hackers out there have an idea?

Thank you.

A: 

NSWindow has this method:

- (BOOL)windowShouldZoom:(NSWindow *) toFrame:(NSRect)proposedFrame

method that you can implement.

Or maybe i don't understand your question...

Eimantas
Thanks, but that's not what I'm looking for:) To put it in simple terms, this is deep deep system-level stuff.
Edward
You could always implement it, set a breakpoint inside your implementation, and follow the crumbs in the stack to see how you ultimately got there.
Azeem.Butt
A: 

CGSGetWindowEventMask or CGSGetWindowGeometry is my best guess but I've never tried my hand at it

slf