• 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
No action msg after NSPathControl "Choose"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No action msg after NSPathControl "Choose"


  • Subject: No action msg after NSPathControl "Choose"
  • From: David Hoerl <email@hidden>
  • Date: Tue, 09 Sep 2008 16:19:59 -0400

The NSPathControl.h file says that when in Popup mode, the control will send a action message. However, I cannot get it to work. I've tried using no types, and a type of "public.folder".

Is this a known problem?

I was able to create a hack work-around: use the NSPathControl delegate method "- (void)pathControl:(NSPathControl *)pathControl willDisplayOpenPanel: (NSOpenPanel *)openPanel" that is called just prior to the NSOpenPanel showing. In that method send the main run loop a message to performSelector with your IBACtion method.

When the user finishes with the open panel, the run loop dequeues your message and sends it to your action method.


David

PS: from NSPathControl.h: "When the URL value in the NSPathControl changes from an automatic drag and drop operation, or from the user selecting a new path via the open panel, the action is sent, but the clickedPathComponentCell will be nil."
_______________________________________________


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: No action msg after NSPathControl "Choose"
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: While we're on the subject of DMG's for software distribution...
  • Next by Date: Re: NSTableView works in 10.5 but not in 10.4
  • Previous by thread: simple window close question
  • Next by thread: Re: No action msg after NSPathControl "Choose"
  • Index(es):
    • Date
    • Thread