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

Re: No action msg after NSPathControl "Choose"


  • Subject: Re: No action msg after NSPathControl "Choose"
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 10 Sep 2008 12:33:44 -0400
  • Organization: Rogue Research

On 9/9/08 4:19 PM, David Hoerl said:

>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?

Yes.  The work around given to me was to subclass and override NSPathCell:

- (void)setURL:(NSURL*)url
{
	[super setURL:url];

	// Workround for <rdar://5415437> on Mac OS X 10.5.x.
	NSPathControl* pathControl = (NSPathControl*)[self controlView];
	(void)[pathControl sendAction:[self action] to:[self target]];
}

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: 
 >No action msg after NSPathControl "Choose" (From: David Hoerl <email@hidden>)

  • Prev by Date: Re: BOOL array
  • Next by Date: Re: While we're on the subject of DMG's for software distribution...
  • Previous by thread: No action msg after NSPathControl "Choose"
  • Next by thread: Invoking -setNeedsDisplay: Whacks frame of NSTextView
  • Index(es):
    • Date
    • Thread