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
Parameters
- 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)