lib/motion/project/template/osx/config.rb
# If the user specifies a custom principal class the NSApplicationMain()
# function will only work if they have also specified a nib or storyboard.
If the user specifies a custom principal class the NSApplicationMain()
function will only work if they have also specified a nib or storyboard.
If the user specifies a custom principal class the NSApplicationMain () function will only work if they have also specified a nib or storyboard .
def use_application_main_function?
      info = merged_info_plist('MacOSX')
      if info['NSPrincipalClass'] == 'NSApplication'
        true
      else
        files = info.values_at('NSMainNibFile', 'NSMainStoryboardFile').compact
        files.any? { |file| !file.strip.empty? }
      end
    end
def use_application_main_function? info = merged_info_plist ( 'MacOSX' ) if info [ 'NSPrincipalClass' ] == 'NSApplication' true else files = info . values_at ( 'NSMainNibFile' , 'NSMainStoryboardFile' ) . compact files . any? { | file | ! file . strip . empty? } end end
If the user specifies a custom principal class the NSApplicationMain()
function will only work if they have also specified a nib or storyboard.
If the user specifies a custom principal class the NSApplicationMain () function will only work if they have also specified a nib or storyboard .