mono / xwt

A cross-platform UI toolkit for creating desktop applications with .NET and Mono
MIT License
1.37k stars 241 forks source link

MacEngine: support custom NSApplicationDelegate, improve init #1004

Closed abock closed 5 years ago

abock commented 5 years ago
  1. Clean up NSApplicationInitializer:

    1. by using [ThreadStatic] which is 2-3x faster than Thread. GetNamedDataSlot etc
    2. stop using reflection to set IgnoreMissingAssembliesDuringRegistration (I think we're far enough into the future to stop paying for this reflection cost on every startup).
  2. Support instantiating custom subclasses of XWT's AppDelegate so other standard macOS app delegate methods can be handled by the application using XWT. This is necessary, for example, to support OSA scripting.