MonobjcMonobjc Documented Class Library
RunModalForTypes Method (fileTypes)
NamespacesMonobjc.AppKitNSOpenPanelRunModalForTypes(NSArray)

Displays the panel and begins a modal event loop that is terminated when the user clicks either OK or Cancel. (Deprecated in Mac OS X v10.6. Use runModal instead. You can set fileTypes using setAllowedFileTypes:.)

Original signature is '- (NSInteger)runModalForTypes:(NSArray *)fileTypes'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use runModal instead. You can set fileTypes using setAllowedFileTypes:.")]
public virtual NSInteger RunModalForTypes(
	NSArray fileTypes
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use runModal instead. You can set fileTypes using setAllowedFileTypes:.")> _
Public Overridable Function RunModalForTypes ( _
	fileTypes As NSArray _
) As NSInteger
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.6. Use runModal instead. You can set fileTypes using setAllowedFileTypes:.")]
public:
virtual NSInteger RunModalForTypes(
	NSArray^ fileTypes
)
Parameters
fileTypes (NSArray)
An array of file extensions and/or HFS file types. Specifies the files the panel allows the user to select. nil makes all files selectable by the user. An array of types passed in here will override one set using setAllowedFileTypes:.
Return Value
The button used to dismiss the dialog: NSOKButton for the OK button and NSCancelButton for the Cancel button.
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)