Add methods to ui/cocoa/texture_factory.go
Refactoring: lazy initializing the application