NSTextView Print from Non-Document
NSTextView Print from Non-Document
- Subject: NSTextView Print from Non-Document
- From: Kodex <email@hidden>
- Date: Tue, 19 Jul 2005 16:03:02 -0700 (PDT)
Here is my problem guys I am very simply trying to
print the contents of a NSTextView. My problem is all
the help i can find online assumes I am using a
NSDocument type of program which I am not.
Is there an easy function to print the contents of the
TextView without worrying about alignment, headers, or
any of that other printsetup stuff?
is what I have been working with, but my controller
isnt using printInfo or runModalPrintOperation
correctly.
MyPrintInfo = [self printInfo];
op = [NSPrintOperation printOperationWithView:
printableText printInfo: MyPrintInfo];
[op setShowPanels: NO];
[self runModalPrintOperation: op delegate: nil
didRunSelector: NULL contextInfo: NULL];
Thanks again everyone!
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden