Re: NSPathControl
Re: NSPathControl
- Subject: Re: NSPathControl
- From: Corbin Dunn <email@hidden>
- Date: Wed, 15 Dec 2010 10:28:52 -0800
On Dec 15, 2010, at 10:21 AM, email@hidden wrote:
> I would like to display a path control when the window title is cmd-clicked or right-clicked.
>
> I am unsure how to receive this event.
>
> Can you point me to a doc that describes such?
>
In NSWindow.h
/* setRepresentedURL:
If url is not nil and its path is not empty, the window will show a document icon in the titlebar.
If the url represents a filename or other resource with a known icon, that icon will be used as the document icon. Otherwise the default document icon will be used. The icon can be customized using [[NSWindow standardWindowButton:NSWindowDocumentIconButton] setImage:customImage]. If url is not nil and its path is not empty, the window will have a pop-up menu which can be shown via command-click on the area containing the document icon and title. By default, this menu will display the path components of the url. The presence and contents of this menu can be controlled by the delegate method window:shouldPopUpDocumentPathMenu:If the url is nil or has an empty path, the window will not show a document icon and will not have a pop-up menu available via command-click.
*/
- (void)setRepresentedURL:(NSURL *)url NS_AVAILABLE_MAC(10_5);
- (NSURL *)representedURL NS_AVAILABLE_MAC(10_5);
corbin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden