Cocoa Internals/Dialogs
From Free Pascal wiki
Class Override
Unlike NSApplication, dialog classes cannot be overwritten in the following manner:
TCocoaColorPanel.sharedPanel
Doing that will cause problems using class methods of the sharedPanel (and likely something else)