public UI() { using (var a = new NSAutoreleasePool()) { NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed("cmissync-app.icns"); this.SetFolderIcon(); this.Setup = new SetupWizardController(); this.About = new About(); this.StatusIcon = new StatusIcon(); this.Settings = new GeneralSettingsController(); this.Transmission = new TransmissionWidgetController(); this.Transmission.LoadWindow(); this.Transmission.Window.IsVisible = false; Program.Controller.UIHasLoaded(); } }