NPAPI:CocoaEventModel: Difference between revisions

Line 50: Line 50:
* Null events are no longer sent.
* Null events are no longer sent.
* The window handle in NP_CGContext and NP_GLContext is now an NSWindow* instead of a WindowRef.
* The window handle in NP_CGContext and NP_GLContext is now an NSWindow* instead of a WindowRef.
All coordinates passed to the plugin via the Cocoa event model are based on the origin being in the top-left (not bottom-left as in standard Cocoa coordinates). This is on account of the fact that the CoreGraphics context given to the plugins is flipped for historical reasons.


The Cocoa event model can not be used with the QuickDraw drawing model.
The Cocoa event model can not be used with the QuickDraw drawing model.
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits