On Oct 27, 2007, at 11:46 AM, Christiaan Hofman wrote: > Much of it the ideas come from mmalc's GraphicsBinding sample project > <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>.
Yeah, I took a few things from that, although I had crash issues with some of them. A few ideas came from MUPhotoView also, mainly when to calculate grid size; it uses NSImage, though which is far too inefficient with PDF. > The void* stuff is rather innocuous. These are just context tags to > identify the bindings. The context is just a pointer size variable, > so a small integer is never a problem. It could also be a pointer to > an object (e.g. a string), but then those should be retained globally. Okay, cool, I was just afraid the magic numbers were something from Apple's internal bindings stuff. > Note that I didn't do the image cache updating, as I don't know how > that works. The view maintains a table of URL->FVIcon objects, aside from the datasource; each one is added lazily. I just posted a snapshot of it to http://homepage.mac.com/amaxwell as FileView.zip. Ignore the compile error about the bundle. I want to do some more cleanup on it, but I have to go replace the starter in my car now. > It could be combined also with the editing stuff (inserting/removing > URLs). I think it should try the following for insert/remove (replace > is just remove+insert): [...] So would this be the main win for adding it? I'm still not clear on what doesn't work right now with bindings. > So the Leopard stuff is only relevant for the previewer then? How > does it work on Tiger? It's for the thumbnails and previewer, actually. I implemented my own pseudo-QuickLook for common file types, and fall back to QuickLook for types I don't understand. For Tiger or types that QL doesn't know about, it just degrades to a file icon. -- adam ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bibdesk-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
