• 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: Debugging problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging problem


  • Subject: Re: Debugging problem
  • From: Laurent Daudelin <email@hidden>
  • Date: Wed, 3 Mar 2010 23:36:29 -0800

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@hidden
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@hidden> 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@hidden
>> Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries
>>
>> _______________________________________________
>>
>> 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

References: 
 >Debugging problem (From: Laurent Daudelin <email@hidden>)
 >Re: Debugging problem (From: Laurent Cerveau <email@hidden>)

  • Prev by Date: Re: Debugging problem
  • Next by Date: Re: Uninitialized rectangle??
  • Previous by thread: Re: Debugging problem
  • Next by thread: Re: Debugging problem
  • Index(es):
    • Date
    • Thread