Christian Why not simply use NSViewMBS of Textarea?
Because I am trying to print a combination of graphics and text from multiple objects over multiple pages. I can’t do that within TextArea. Essentially I have a database of RTF fields, that need printing in a prescribed layout combined with graphics. Jim Message: 8 Date: Mon, 16 Jun 2014 23:16:08 +0200 From: Christian Schmitz <[email protected]> Subject: Re: [MBS] Re: How to Print NSTextStorageMBS into a printer graphic object? To: MBS-Plugin-Liste Plugin List <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=windows-1252 Am 16.06.2014 um 22:57 schrieb Jim Pitchford <[email protected]>: > Christian > > I tried this but it sticks where indicated: > > //create a new view > dim v as new NSViewMBS (0,0, 400, 600) here you create a dummy NSViewMBS. It doesn't so much. > //create the graphics associated with the view > dim nsg as NSGraphicsMBS = NSGraphicsMBS.graphicsContextWithNSView(v) //<< > Routine stops here and returns This causes exception as view is not part of a window. You see messages in Console. I'll fix it to raise NSException. > Am I missing something in creating the NSView or NSGraphics? Why not simply use NSViewMBS of Textarea? Sincerely Christian _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
