• 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: mouse pointer for drag copy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouse pointer for drag copy


  • Subject: Re: mouse pointer for drag copy
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 29 Jul 2004 14:34:44 -0600

On Jul 29, 2004, at 1:48 PM, Adam Maxwell wrote:

Incidentally, I take back what I said earlier; sending an array of multiple types to the Finder caused my app to segfault on quit

That's due to a bug in Mac OS X 10.3 where, if you perform a file-promise drag with multiple files at once, then the AppKit deallocates the NSFilePromiseDragSource private class too early, causing the app to crash when the AppKit tries to re-release the class on termination. At least that's what I observed by watching the whole process in GDB.

AFAIK there is only one workaround, and it is to add this to your application's source:

@interface NSFilePromiseDragSource : NSObject
{ }
@end

@implementation NSFilePromiseDragSource (DontCrash)
- (void)dealloc { }
- (unsigned int)retainCount { return UINT_MAX; }
@end

That way the class will never deallocate, and thus won't crash when the AppKit tries to double-deallocate it. While this does cause a memory leak to occur when file promise drags occur, I can't find any other good way of solving this problem...

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: mouse pointer for drag copy
      • From: Adam Maxwell <email@hidden>
References: 
 >mouse pointer for drag copy (From: Adam Maxwell <email@hidden>)
 >Re: mouse pointer for drag copy (From: Nick Zitzmann <email@hidden>)
 >Re: mouse pointer for drag copy (From: Adam Maxwell <email@hidden>)
 >Re: mouse pointer for drag copy (From: Nick Zitzmann <email@hidden>)
 >Re: mouse pointer for drag copy (From: Adam Maxwell <email@hidden>)

  • Prev by Date: Re: Slow and bloated?
  • Next by Date: Re: mouse pointer for drag copy
  • Previous by thread: Re: mouse pointer for drag copy
  • Next by thread: Re: mouse pointer for drag copy
  • Index(es):
    • Date
    • Thread