[fbcocoa] Re: [fbcocoa] Cocoa Bool Sheet } 8 )

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2012 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Sun, 13 May 2012 20:14:32 -0400
That works fine, and is nice and compact. Thanks.

Now to see if it all works as a sheet...

On May 13, 2012, at 7:30 PM, Ken Shmidheiser wrote:

> Robert,
> 
> Try this. (May take a few seconds to load a big RTF file.)
> 
> Ken
> 
> BeginCCode
> 
> NSScrollView *scrlView = [[NSScrollView alloc] initWithFrame:NSMakeRect( 0, 0,W,H)];
> [scrlView setBorderType:NSBezelBorder];
> [scrlView setHasVerticalScroller: YES];
> NSTextView *txtView = [[NSTextView alloc]initWithFrame:NSMakeRect( 20, 20, W - 20, H - 20 )];
> [scrlView setDocumentView: txtView];
> HICocoaViewSetView( HICocoaView, scrlView );
> [txtView release];
> NSString *path = [[NSBundle mainBundle] pathForResource:@"Help" ofType:@"rtf"];
> [txtView readRTFDFromFile:path]; 
> 
> EndC
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fbcocoa-unsubscribe@...
> For additional commands, e-mail: fbcocoa-help@...
>