5 // Created by Claudio Bisegni on 06/07/07.
6 // Copyright 2007 INFN - National Institute of Nuclear Physics. All rights reserved.
9 #import "InfoController.h"
12 @implementation InfoController
13 // -------------------------------------------------------------------------------
15 // -------------------------------------------------------------------------------
18 NSLog(@"awakeFromNib");
22 // -------------------------------------------------------------------------------
24 // -------------------------------------------------------------------------------
25 - (void)showHtmlResource :(NSString*)resourcePath
27 NSData *rtfData = [NSData dataWithContentsOfFile:resourcePath];
28 htmlLicence = [[NSAttributedString alloc] initWithRTF:rtfData
29 documentAttributes:nil];
30 [[((NSTextView*) texEditInfo ) textStorage] setAttributedString:htmlLicence];
34 // -------------------------------------------------------------------------------
36 // -------------------------------------------------------------------------------
37 - (IBAction) closePanel:(id) sender
39 if(htmlLicence) [htmlLicence release];
40 [NSApp endSheet:infoPanel];