I tried setting a breakpoint on [NSException raise]. Didn't try on the [NSURL 
initWithString:baseURL:] but I'll try it tomorrow. Maybe that will help.

-Laurent.
-- 
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin                                 
http://nemesys.dyndns.org
Logiciels Nemesys Software                                              
[email protected]
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries

On Mar 3, 2010, at 22:46, Laurent Cerveau wrote:

> Did you try to break on -[NSException raise] or on the NSURL initWithString 
> method?
> 
> Laurent
> 
> Sent from my road phone
> 
> 
> On Mar 4, 2010, at 4:24 AM, Laurent Daudelin <[email protected]> 
> wrote:
> 
>> I'm trying to debug a problem where an NSOutlineView, as part of a drag, 
>> tries to create an instance of NSURL using "- (id)initWithString:(NSString 
>> *)URLString relativeToURL:(NSURL *)baseURL" with a nil string and get the 
>> following error:
>> 
>> *** Ignoring exception 'NSInvalidArgumentException' (reason '*** -[NSURL 
>> initWithString:relativeToURL:]: nil string parameter') raised by 
>> <NSOutlineView: 0x2d6a1a0> during a dragging session
>> 
>> It happens *after* I write the dragging items to a NSFilesPromisePboardType 
>> pasteboard type. I have no idea where this NSURL is created.
>> 
>> I have tried to create a subclass of NSURL and make that class to pose as 
>> NSURL but then, I'm getting all kind of unknown messages sent to instances 
>> of various classes like:
>> 
>> -[NSCFString absoluteURL]: unrecognized selector sent to instance 0x30e940
>> or
>> -[%NSURL length]: unrecognized selector sent to instance 0x503930
>> 
>> I also set a future break on [NSException raise] but it's doesn't break on 
>> that call.
>> 
>> How can I find where this initWithString:relativeToURL: comes from? The 
>> problem is that it doesn't always happen. I tried to reproduce it but so 
>> far, I'm not sure what I'm doing different that will trigger the bug. The 
>> drag is from my app to the Finder. If I drag from within my app, the error 
>> never occurs. It really seems to be with the NSFilesPromisePboardType 
>> pasteboard type that this happens.
>> 
>> Anybody have any suggestion?
>> 
>> Thanks in advance!
>> 
>> -Laurent.
>> -- 
>> Laurent Daudelin
>> AIM/iChat/Skype:LaurentDaudelin                http://nemesys.dyndns.org
>> Logiciels Nemesys Software                              
>> [email protected]
>> Photo Gallery Store: 
>> http://laurentdaudelin.shutterbugstorefront.com/g/galleries
>> 
>> _______________________________________________
>> 
>> Cocoa-dev mailing list ([email protected])
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/lcerveau%40me.com
>> 
>> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to