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

Debugging problem


  • Subject: Debugging problem
  • From: Laurent Daudelin <email@hidden>
  • Date: Wed, 3 Mar 2010 19:24:06 -0800

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

  • Follow-Ups:
    • Re: Debugging problem
      • From: Jens Alfke <email@hidden>
    • Re: Debugging problem
      • From: Keary Suska <email@hidden>
    • Re: Debugging problem
      • From: Laurent Cerveau <email@hidden>
  • Prev by Date: Re: Responding to kill signals with the run loop
  • Next by Date: Re: Responding to kill signals with the run loop
  • Previous by thread: Re: Responding to kill signals with the run loop
  • Next by thread: Re: Debugging problem
  • Index(es):
    • Date
    • Thread