From: <ho...@us...> - 2009-12-12 15:42:55
|
Revision: 16320 http://bibdesk.svn.sourceforge.net/bibdesk/?rev=16320&view=rev Author: hofman Date: 2009-12-12 15:42:48 +0000 (Sat, 12 Dec 2009) Log Message: ----------- remove code that does not work Modified Paths: -------------- trunk/bibdesk/BDSKAppController.m Modified: trunk/bibdesk/BDSKAppController.m =================================================================== --- trunk/bibdesk/BDSKAppController.m 2009-12-12 12:50:35 UTC (rev 16319) +++ trunk/bibdesk/BDSKAppController.m 2009-12-12 15:42:48 UTC (rev 16320) @@ -431,24 +431,6 @@ anItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:[url lastPathComponent] action:@selector(openRecentItemFromDock:) keyEquivalent:@""]; [anItem setTarget:self]; [anItem setRepresentedObject:url]; - - // Supposed to be able to set the image this way according to a post from jcr on cocoadev, but all I get is a weird [obj] image on 10.4. Apparently this is possible with Carbon <http://developer.apple.com/documentation/Carbon/Conceptual/customizing_docktile/index.html> but it involves event handlers and other nasty things, even more painful than adding an image to an attributed string. -#if 0 - NSMutableAttributedString *attrTitle = [[NSMutableAttributedString alloc] init]; - NSTextAttachmentCell *attachmentCell = [[NSTextAttachmentCell alloc] init]; - [attachmentCell setImage:[NSImage imageForURL:url]]; - - NSTextAttachment *attachment = [[NSTextAttachment alloc] init]; - [attachment setAttachmentCell:attachmentCell]; - [attachmentCell release]; - [attrTitle appendAttributedString:[NSAttributedString attributedStringWithAttachment:attachment]]; - [attachment release]; - - [attrTitle appendString:@" " attributes:nil]; - [attrTitle appendString:[anItem title]]; - [anItem setAttributedTitle:attrTitle]; - [attrTitle release]; -#endif [submenu addItem:anItem]; [anItem release]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |