• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPathControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSPathControl (From: email@hidden)

  • Prev by Date: NSPathControl
  • Next by Date: NSToolbar autovalidate
  • Previous by thread: NSPathControl
  • Next by thread: NSToolbar autovalidate
  • Index(es):
    • Date
    • Thread