Re: No action msg after NSPathControl "Choose"
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