MonobjcMonobjc Documented Class Library
StopModalWithCode Method (returnCode)
NamespacesMonobjc.AppKitNSApplicationStopModalWithCode(NSInteger)

Stops a modal event loop, allowing you to return a custom result code.

Original signature is '- (void)stopModalWithCode:(NSInteger)returnCode'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void StopModalWithCode(
	NSInteger returnCode
)
Public Overridable Sub StopModalWithCode ( _
	returnCode As NSInteger _
)
public:
virtual void StopModalWithCode(
	NSInteger returnCode
)
Parameters
returnCode (NSInteger)
The result code you want returned from the runModalForWindow: or runModalSession: method. The meaning of this result code is up to you.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

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