# generated by 'rake generate'
require 'cocoa/bindings/NSResponder'
module Cocoa
  class NSApplication < Cocoa::NSResponder
    attach_method :abortModal, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :activateContextHelpMode, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :activateIgnoringOtherApps, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :activationPolicy, :args=>0, :names=>[], :types=>[], :retval=>"q"
    attach_method :addWindowsItem, :args=>3, :names=>[:title, :filename], :types=>["@", "@", "B"], :retval=>"v"
    attach_method :application, :args=>2, :names=>[:printFiles], :types=>["@", "@"], :retval=>"v"
    attach_method :applicationIconImage, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :arrangeInFront, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :beginModalSessionForWindow, [{:args=>1, :names=>[], :types=>["@"], :retval=>"^{_NSModalSession=}"}, {:args=>2, :names=>[:relativeToWindow], :types=>["@", "@"], :retval=>"^{_NSModalSession=}"}]
    attach_method :beginSheet, :args=>5, :names=>[:modalForWindow, :modalDelegate, :didEndSelector, :contextInfo], :types=>["@", "@", "@", ":", "^v"], :retval=>"v"
    attach_method :cancelUserAttentionRequest, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
    attach_method :changeWindowsItem, :args=>3, :names=>[:title, :filename], :types=>["@", "@", "B"], :retval=>"v"
    attach_method :completeStateRestoration, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :context, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :currentEvent, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :currentSystemPresentationOptions, :args=>0, :names=>[], :types=>[], :retval=>"Q"
    attach_method :deactivate, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :delegate, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_singular_method :detachDrawingThread, :args=>3, :names=>[:toTarget, :withObject], :types=>[":", "@", "@"], :retval=>"v"
    attach_method :disableRelaunchOnLogin, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :discardEventsMatchingMask, :args=>2, :names=>[:beforeEvent], :types=>["Q", "@"], :retval=>"v"
    attach_method :dockTile, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :enableRelaunchOnLogin, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :enabledRemoteNotificationTypes, :args=>0, :names=>[], :types=>[], :retval=>"Q"
    attach_method :endModalSession, :args=>1, :names=>[], :types=>["^{_NSModalSession=}"], :retval=>"v"
    attach_method :endSheet, [{:args=>1, :names=>[], :types=>["@"], :retval=>"v"}, {:args=>2, :names=>[:returnCode], :types=>["@", "q"], :retval=>"v"}]
    attach_method :extendStateRestoration, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :finishLaunching, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :helpMenu, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :hide, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :hideOtherApplications, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :isActive, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isFullKeyboardAccessEnabled, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isHidden, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isRunning, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :keyWindow, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :mainMenu, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :mainWindow, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :makeWindowsPerform, :args=>2, :names=>[:inOrder], :types=>[":", "B"], :retval=>"@"
    attach_method :miniaturizeAll, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :modalWindow, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :nextEventMatchingMask, :args=>4, :names=>[:untilDate, :inMode, :dequeue], :types=>["Q", "@", "@", "B"], :retval=>"@"
    attach_method :orderFrontCharacterPalette, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :orderFrontColorPanel, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :orderFrontStandardAboutPanel, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :orderFrontStandardAboutPanelWithOptions, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :orderedDocuments, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :orderedWindows, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :postEvent, :args=>2, :names=>[:atStart], :types=>["@", "B"], :retval=>"v"
    attach_method :presentationOptions, :args=>0, :names=>[], :types=>[], :retval=>"Q"
    attach_method :preventWindowOrdering, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :registerForRemoteNotificationTypes, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
    attach_method :registerServicesMenuSendTypes, :args=>2, :names=>[:returnTypes], :types=>["@", "@"], :retval=>"v"
    attach_method :registerUserInterfaceItemSearchHandler, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :removeWindowsItem, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :replyToApplicationShouldTerminate, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :replyToOpenOrPrint, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
    attach_method :reportException, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :requestUserAttention, :args=>1, :names=>[], :types=>["Q"], :retval=>"q"
    attach_method :restoreWindowWithIdentifier, :args=>3, :names=>[:state, :completionHandler], :types=>["@", "@", "@?"], :retval=>"B"
    attach_method :run, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :runModalForWindow, [{:args=>1, :names=>[], :types=>["@"], :retval=>"q"}, {:args=>2, :names=>[:relativeToWindow], :types=>["@", "@"], :retval=>"q"}]
    attach_method :runModalSession, :args=>1, :names=>[], :types=>["^{_NSModalSession=}"], :retval=>"q"
    attach_method :runPageLayout, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :searchString, :args=>4, :names=>[:inUserInterfaceItemString, :searchRange, :foundRange], :types=>["@", "@", "{_NSRange=QQ}", "^{_NSRange=QQ}"], :retval=>"B"
    attach_method :sendAction, :args=>3, :names=>[:to, :from], :types=>[":", "@", "@"], :retval=>"B"
    attach_method :sendEvent, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :servicesMenu, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :servicesProvider, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :setActivationPolicy, :args=>1, :names=>[], :types=>["q"], :retval=>"B"
    attach_method :setApplicationIconImage, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setDelegate, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setHelpMenu, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setMainMenu, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setPresentationOptions, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
    attach_method :setServicesMenu, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setServicesProvider, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setWindowsMenu, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setWindowsNeedUpdate, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_singular_method :sharedApplication, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :showHelp, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :stop, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :stopModal, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :stopModalWithCode, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
    attach_method :targetForAction, [{:args=>1, :names=>[], :types=>[":"], :retval=>"@"}, {:args=>3, :names=>[:to, :from], :types=>[":", "@", "@"], :retval=>"@"}]
    attach_method :terminate, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :tryToPerform, :args=>2, :names=>[:with], :types=>[":", "@"], :retval=>"B"
    attach_method :unhide, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :unhideAllApplications, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :unhideWithoutActivation, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :unregisterForRemoteNotifications, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :unregisterUserInterfaceItemSearchHandler, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :updateWindows, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :updateWindowsItem, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :userInterfaceLayoutDirection, :args=>0, :names=>[], :types=>[], :retval=>"q"
    attach_method :validRequestorForSendType, :args=>2, :names=>[:returnType], :types=>["@", "@"], :retval=>"@"
    attach_method :windowWithWindowNumber, :args=>1, :names=>[], :types=>["q"], :retval=>"@"
    attach_method :windows, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :windowsMenu, :args=>0, :names=>[], :types=>[], :retval=>"@"
  end
end
