//
//  AppController.m
//  Table
//
//  Created by H. Nikolaus Schaller on 23.04.07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "AppController.h"


@implementation AppController

- (void) awakeFromNib;
{ // load DOC document which carries a table and print the attributed string
	NSString *path=[[NSBundle mainBundle] pathForResource:@"Ohne Titel" ofType:@"doc"];
	NSData *data=[NSData dataWithContentsOfFile:path];
	NSDictionary *attribs;
	NSAttributedString *astr=[[NSAttributedString alloc] initWithDocFormat:data documentAttributes:&attribs];
	NSLog(@"string=%@", astr);
	[[text textStorage] setAttributedString:astr];
}

@end
