On Nov 18, 2007, at 11:59 AM, Christiaan Hofman wrote: > I'm afraid I broke the local drags in the FileView. Why use the > Carbon pasteboard at all?
I was wondered about that...but your changes seemed to work okay on Leopard. Things are a bit different on Tiger, and I had to do a lot of debugging to get both of them working. The comments in the code should indicate why I'm using the Carbon pasteboard, but it's basically because NSPasteboard's URL handling is complete crap. I originally had a bunch of code in there for promised file drags and other stuff, but using the Carbon pboard means that webloc creation and Finder drag-and-drop is handled by the OS; no screwing around with separate threads for non-blocking copies or creating resource files. Unfortunately, I couldn't make it public API via an NSPasteboard category because there are some bugs in Tiger when manipulating the NSPasteboard from Carbon. It's easier than what we do in BibDesk, though, and doesn't rely on undocumented structures. -- adam ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bibdesk-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
