Sha256: 5b02dc17c4980e20d7f8ce9ed5ed8e7c1bbe6dffc1358d3cab1ec9bcf9e7353a

Contents?: true

Size: 482 Bytes

Versions: 9

Compression:

Stored size: 482 Bytes

Contents

module UI
  class Application
    attr_reader :navigation

    @@instance = nil
    def initialize(navigation, context)
      @navigation = navigation
      context.window = proxy
      @@instance = self
    end

    def self.instance
      @@instance
    end

    def start
      proxy.rootViewController = @navigation.proxy
      proxy.makeKeyAndVisible
      true
    end

    def proxy
      @proxy ||= UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
motion-flow-0.1.8 flow/ui/cocoa/application.rb
motion-flow-0.1.7 flow/ui/cocoa/application.rb
motion-flow-0.1.6 flow/ui/cocoa/application.rb
motion-flow-0.1.5 flow/ui/cocoa/application.rb
motion-flow-0.1.4 flow/ui/cocoa/application.rb
motion-flow-0.1.3 flow/ui/cocoa/application.rb
motion-flow-0.1.2 flow/ui/cocoa/application.rb
motion-flow-0.1.1 flow/ui/cocoa/application.rb
motion-flow-0.1 flow/ui/cocoa/application.rb