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

Adds an item to the Window menu for a given window.

Original signature is '- (void)addWindowsItem:(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 AddWindowsItemTitleFilename(
	NSWindow aWindow,
	NSString aString,
	bool isFilename
Public Overridable Sub AddWindowsItemTitleFilename ( _
	aWindow As NSWindow, _
	aString As NSString, _
	isFilename As Boolean _
virtual void AddWindowsItemTitleFilename(
	NSWindow^ aWindow, 
	NSString^ aString, 
	bool isFilename
aWindow (NSWindow)
The window being added to the menu. If this window object already exists in the Window menu, this method has no effect.
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)