Difference between revisions of "Cocoa Internals"

From Free Pascal wiki
Jump to navigationJump to search
(started the page)
 
m (adding categories)
Line 9: Line 9:
 
** TCustomWSForm it is content NSView.
 
** TCustomWSForm it is content NSView.
 
** Any control that has scroll bars (i.e. TCustomWSList) the it its the embedding NSScrollView (TCocoaScrollView)
 
** Any control that has scroll bars (i.e. TCustomWSList) the it its the embedding NSScrollView (TCocoaScrollView)
 +
[[Category:Mac OS]]
 +
[[Category:Mac OS X]]
 +
[[Category:Widgetset]]

Revision as of 06:19, 12 December 2013

The page is about Cocoa Widgetset internal implementation. The page should be useful for Cocoa widgetset developers (maintainers and/or constributors) as well as any developers who need to use Cocoa specific API.

LCL specific ObjC classes

In order to control and handle an NSView's behavior LCL uses decedent classes from standard Cocoa controls. I.e. for NSWindow TCocoaWindow is introduced. The decedent are used for the purpose of "overriding" default class implementation, where it is needed. In some cases using delegate classes is not enough.

Handles

  • Window handle is always NSView.
    • TCustomWSForm it is content NSView.
    • Any control that has scroll bars (i.e. TCustomWSList) the it its the embedding NSScrollView (TCocoaScrollView)