Initializes and returns an NSDocument object. (Deprecated in Mac OS X v10.4. Use initWithContentsOfURL:ofType:error: instead.)
Original signature is '- (id)initWithContentsOfFile:(NSString *)fileName ofType:(NSString *)docType'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("Deprecated in Mac OS X v10.4. Use initWithContentsOfURL:ofType:error: instead.")] public virtual Id InitWithContentsOfFileOfType( NSString fileName, NSString docType )
<ObsoleteAttribute("Deprecated in Mac OS X v10.4. Use initWithContentsOfURL:ofType:error: instead.")> _ Public Overridable Function InitWithContentsOfFileOfType ( _ fileName As NSString, _ docType As NSString _ ) As Id
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.4. Use initWithContentsOfURL:ofType:error: instead.")] public: virtual Id^ InitWithContentsOfFileOfType( NSString^ fileName, NSString^ docType )
Return Value
[Missing <returns> documentation for "M:Monobjc.AppKit.NSDocument.InitWithContentsOfFileOfType(Monobjc.Foundation.NSString,Monobjc.Foundation.NSString)"]
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)