Conforms to | |
Framework | /System/Library/Frameworks/AppKit.framework |
Availability | Available in Mac OS X v10.5 and later. |
Declared in | NSPathCell.h |
The NSPathCellDelegate
optional protocol enables the delegate of an NSPathCell
object to customize the Open panel or pop-up menu of a path whose style is set to NSPathStylePopUp
.
Implement this method to customize the Open panel shown by a pop-up–style path.
- (void)pathCell:(NSPathCell *)pathCell willDisplayOpenPanel:(NSOpenPanel *)openPanel
The path cell that sent the message.
The Open panel to be displayed.
This method is called before the Open panel is shown but after its allowed file types are set to the cell's allowed types. At this time, you can further customize the Open panel as required. This method is called only when the style is set to NSPathStylePopUp
. Implementation of this method is optional.
NSPathCell.h
Implement this method to customize the menu of a pop-up–style path.
- (void)pathCell:(NSPathCell *)pathCell willPopUpMenu:(NSMenu *)menu
The path cell that sent the message.
The pop-up menu to be displayed.
This method is called before the pop-up menu is shown. At this time, you can further customize the menu as required, adding and removing items. This method is called only when the style is set to NSPathStylePopUp
. Implementation of this method is optional.
NSPathCell.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-04-11)