MonobjcMonobjc Documented Class Library
BeginSheetModalForWindowCompletionHandler Method (window, handler)
NamespacesMonobjc.AppKitNSSavePanelBeginSheetModalForWindowCompletionHandler(NSWindow, Action<(Of <<'(NSInteger>)>>))

Presents the panel as a sheet modal to the specified window.

Original signature is '- (void)beginSheetModalForWindow:(NSWindow *)window completionHandler:(void (^)(NSInteger result))handler'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void BeginSheetModalForWindowCompletionHandler(
	NSWindow window,
	Action<NSInteger> handler
)
Public Overridable Sub BeginSheetModalForWindowCompletionHandler ( _
	window As NSWindow, _
	handler As Action(Of NSInteger) _
)
public:
virtual void BeginSheetModalForWindowCompletionHandler(
	NSWindow^ window, 
	Action<NSInteger>^ handler
)
Parameters
window (NSWindow)
The window in which the panel will be presented.
handler (Action<(Of <(<'NSInteger>)>)>)
The block called after the user has closed the panel. The argument passed in will be NSFileHandlingPanelOKButton if the user chose the OK button or NSFileHandlingPanelCancelButton if the user chose the Cancel button.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)