On Monday, November 12, 2007, at 06:52AM, "Christiaan Hofman" <[EMAIL PROTECTED]> wrote: >I just completely changed the BDSKAliasFile stuff, combining local >files and remote URLs in the file view. It is URL based (as that is >the common denominator for both) and uses a new class cluster. See >how you like it.
Sounds good. I'll take a look when I get a chance; I'm dealing with power and network outages here. >Could the label be written over more than one line, so the remote >URLs have a more informative label? Or otherwise truncate the head >rather than the middle. Apple's ImageKit view truncates the tail. What I'd like to do is draw the filename as Finder does, extending over two lines and truncating the last line in the middle. I haven't made time to work on it, since I figured I'd have to use NSLayoutManager to do the drawing...and because I can get it for free on 10.5 with NSStringDrawingTruncatesLastVisibleLine. Another idea I've toyed with is having the objects returned by the datasource conform to a protocol similar to IKImageBrowserItem, which allows a title and subtitle. (see attached) This could be handy in BibDesk; in the main window, displaying the BibItem title is probably more useful than the file name, whereas in BibEditor the reverse is true. The protocol might look like @interface NSObject (FVItem) - (NSURL *)itemURL; - (NSString *)itemTItle; - (NSString *)itemSubtitle; @implementation This would have no effect on caching, and the iconURLAtIndex: method would just have another layer of indirection. The _iconURLs ivar would change to _iconItems or something. Another way would be to add an optional -fileView:titleOfURLAtIndex: and subtitle method...but that's messy. There would still be problems with fitting all of the text into a small area, though, and I'm not entirely sold on the idea. Keeping the API simple is a must. -- adam
Picture 1.png
Description: Binary data
------------------------------------------------------------------------- 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
