MonobjcMonobjc Documented Class Library
ChangeWindowsItemTitleFilename Method (aWindow, aString, isFilename)
NamespacesMonobjc.AppKitNSApplicationChangeWindowsItemTitleFilename(NSWindow, NSString, Boolean)

Changes the item for a given window in the Window menu to a given string.

Original signature is '- (void)changeWindowsItem:(NSWindow *)aWindow title:(NSString *)aString filename:(BOOL)isFilename'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void ChangeWindowsItemTitleFilename(
	NSWindow aWindow,
	NSString aString,
	bool isFilename
)
Public Overridable Sub ChangeWindowsItemTitleFilename ( _
	aWindow As NSWindow, _
	aString As NSString, _
	isFilename As Boolean _
)
public:
virtual void ChangeWindowsItemTitleFilename(
	NSWindow^ aWindow, 
	NSString^ aString, 
	bool isFilename
)
Parameters
aWindow (NSWindow)
The window whose title you want to change in the Window menu. If aWindow is not in the Window menu, this method adds it.
aString (NSString)
The string to display for the window’s menu item. How the string is interpreted is dependent on the value in the isFilename parameter.
isFilename (Boolean)
If NO, aString appears literally in the menu; otherwise, aString is assumed to be a converted pathname with the name of the file preceding the path (the way the NSWindow method setTitleWithRepresentedFilename: shows a title)
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)