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 // -------------------------------------------------------------------------------
21 // -------------------------------------------------------------------------------
23 // -------------------------------------------------------------------------------
24 - (void)showHtmlResource :(NSString*)resourcePath
26 NSData *rtfData = [NSData dataWithContentsOfFile:resourcePath];
27 htmlLicence = [[NSAttributedString alloc] initWithRTF:rtfData
28 documentAttributes:nil];
29 [[((NSTextView*) texEditInfo ) textStorage] setAttributedString:htmlLicence];
33 // -------------------------------------------------------------------------------
35 // -------------------------------------------------------------------------------
36 - (IBAction) closePanel:(id) sender
38 if(htmlLicence) [htmlLicence release];
39 [NSApp endSheet:infoPanel];