• 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: Problems with NSPathControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with NSPathControl


  • Subject: Re: Problems with NSPathControl
  • From: Kevin Perry <email@hidden>
  • Date: Mon, 12 Jul 2010 13:39:21 -0700

Dave,

I believe what you're seeing is the intended behavior.

There are cases where developers have not wanted the URL to change when an item in the pop-up menu is selected. Instead of doing this automatically and forcing developers to prevent or undo this behavior, NSPathControl instead expects you to set URL yourself in the action method if you want this behavior.

On Jul 12, 2010, at 1:26 PM, Dave DeLong wrote:

> Hi everyone,
>
> I have an NSPathControl set to the Pop Up style, with an initial path of "/Users/dave".  It's restricted to items of type "public.folder".  When I run this project and interact with the path control, I see a menu like this:
>
> Choose....
> ----------------------------
> dave
> Users
> (Volume name)
> (Computer name)
>
> The "Choose..." item brings up a standard open panel which restricts selection to folders (as specified by the allowedTypes:).  This works correctly, and the path control updates to reflect the newly chosen item.
>
> However, when I try to select something from the bottom portion of the menu, like "Users", the menuitem highlight does its little flickering thing to indicate that the item was chosen, but the path doesn't change.
>
> Am I correct in expecting that choosing an item from the menu should change the path of the control?  If that's a correct assumption, then do you have any suggestions about why it's not behaving properly?  By own attempts to debug this (introspecting the menu, pathcontrol, etc) have been fruitless.
>
> Thanks,
>
> Dave DeLong_______________________________________________
>
> 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

_______________________________________________

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

  • Follow-Ups:
    • Re: Problems with NSPathControl
      • From: Dave DeLong <email@hidden>
References: 
 >Problems with NSPathControl (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Finding Application support folder without Cocoa or Carbon
  • Next by Date: Re: Finding Application support folder without Cocoa or Carbon
  • Previous by thread: Problems with NSPathControl
  • Next by thread: Re: Problems with NSPathControl
  • Index(es):
    • Date
    • Thread