• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView Print from Non-Document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: From Delphi to Cocoa
  • Next by Date: Re: From Delphi to Cocoa
  • Previous by thread: Re: Help with error while loading nib
  • Next by thread: Universal Template Engine for Cocoa
  • Index(es):
    • Date
    • Thread