One Question… and Two Apps…

rhale1

KU Mac Geek
First: the Question
I need an Action to do two things, read an
RTF file and open a document (in a new
window). The doc I want to open is in my Apps
bundle. What do I need to change to the code
below?
Code:
- (IBAction)frameTop:(id)sender
{
	// first part works
    [documentTextView readRTFDFromFile:[[NSBundle mainBundle] pathForResource:@"Credits" ofType:@"rtf"]];

// this part does not work    
[NSApp makeDocumentWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Credits" ofType:@"rtf"]];
}

Second: Anyone have ideas that they want to see in a Text Editor or HTML Code Editor. I am getting ideas for the next version of the Text Editor and the first release of the HTML Editor. More info can be found at my Software Website (<a href="http://homepage.mac.com/devX/">devX Software</a>).

Thanks!
 
Back
Top