Difference between revisions of "Cocoa Internals/Extensions"
From Lazarus wiki
Jump to navigationJump to search (Created page with "==See Also== *Cocoa Internals Category:Cocoa") |
m (→See Also) |
||
Line 1: | Line 1: | ||
+ | Extensions are used to add additional lcl-friendly methods to all Cocoa classes. | ||
+ | The default implementation of each method should: | ||
+ | * either indicate that a class is not a LCL-specific class (it's Cocoa native) thus should be handled with care | ||
+ | * provide a basic functionality for LCL types (for example setting a control bounds using TRect type. Where cocoa is using float-point NSRect) | ||
+ | |||
+ | ==Extensions== | ||
+ | ====== | ||
+ | |||
==See Also== | ==See Also== | ||
*[[Cocoa Internals]] | *[[Cocoa Internals]] | ||
[[Category:Cocoa]] | [[Category:Cocoa]] |
Revision as of 19:12, 23 December 2017
Extensions are used to add additional lcl-friendly methods to all Cocoa classes. The default implementation of each method should:
- either indicate that a class is not a LCL-specific class (it's Cocoa native) thus should be handled with care
- provide a basic functionality for LCL types (for example setting a control bounds using TRect type. Where cocoa is using float-point NSRect)