C# Class Monobjc.AppKit.NSApplication

Mostra file Open project: Monobjc/monobjc Class Usage Examples

Public Properties

Property Type Description
AutoreleasePool NSAutoreleasePool

Public Methods

Method Description
BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo ( NSWindow sheet, NSWindow docWindow, SheetDidEndReturnCodeContextInfoEventHandler modalDelegate, IntPtr contextInfo ) : void

Starts a document modal session.

Original signature is '- (void)beginSheet:(NSWindow *)sheet modalForWindow:(NSWindow *)docWindow modalDelegate:(id)modalDelegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo'

Available in Mac OS X v10.0 and later.

Bootstrap ( ) : void

Bootstrap the process instance and install the NSAutoreleasePool on the main thread.

LoadNib ( String filename ) : void

Loads the nib and assings ownership to the SharedApplication instance.

RunApplication ( ) : void

Runs the main event loop.

ToString ( ) : string

Returns a System.String that represents this instance.

Method Details

BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo() public method

Starts a document modal session.

Original signature is '- (void)beginSheet:(NSWindow *)sheet modalForWindow:(NSWindow *)docWindow modalDelegate:(id)modalDelegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo'

Available in Mac OS X v10.0 and later.

public BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo ( NSWindow sheet, NSWindow docWindow, SheetDidEndReturnCodeContextInfoEventHandler modalDelegate, IntPtr contextInfo ) : void
sheet NSWindow The window object representing the sheet you want to display.
docWindow NSWindow The window object to which you want to attach the sheet.
modalDelegate SheetDidEndReturnCodeContextInfoEventHandler The delegate object that defines your didEndSelector method. If nil, the method in didEndSelector is not called.
contextInfo System.IntPtr A pointer to the context info you want passed to the didEndSelector method when the sheet�s modal session ends.
return void

Bootstrap() public static method

Bootstrap the process instance and install the NSAutoreleasePool on the main thread.
public static Bootstrap ( ) : void
return void

LoadNib() public static method

Loads the nib and assings ownership to the SharedApplication instance.
public static LoadNib ( String filename ) : void
filename String The filename.
return void

RunApplication() public static method

Runs the main event loop.
public static RunApplication ( ) : void
return void

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string

Property Details

AutoreleasePool public_oe static_oe property

Autorelease pool created by default when launching a GUI application
public static NSAutoreleasePool AutoreleasePool
return NSAutoreleasePool