MonobjcMonobjc Documented Class Library
InitWithNameFromFile Method (name, path)
NamespacesMonobjc.AppKitNSColorListInitWithNameFromFile(NSString, NSString)

Initializes and returns the receiver, registering it under the given name if it isn’t in use already.

Original signature is '- (id)initWithName:(NSString *)name fromFile:(NSString *)path'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithNameFromFile(
	NSString name,
	NSString path
)
Public Overridable Function InitWithNameFromFile ( _
	name As NSString, _
	path As NSString _
) As Id
public:
virtual Id^ InitWithNameFromFile(
	NSString^ name, 
	NSString^ path
)
Parameters
name (NSString)
The name of the file for the color list (minus the “.clr” extension). Specify @”” if you don’t want a name.
path (NSString)
The full path to the file for the color list. A nil path indicates the color list should be initialized with no colors.
Return Value

[Missing <returns> documentation for "M:Monobjc.AppKit.NSColorList.InitWithNameFromFile(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)

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