home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!concert!duke!news.duke.edu!bullnext.mc.duke.edu
- From: low00001@bullnext.mc.duke.edu (Richard Low)
- Newsgroups: comp.sys.next.programmer
- Subject: printPSCode: for aText object
- Keywords: Print Text
- Message-ID: <4189@news.duke.edu>
- Date: 31 Jul 92 13:34:05 GMT
- Sender: news@news.duke.edu
- Lines: 61
- Nntp-Posting-Host: homenext.mc.duke.edu
-
- I'm trying to add generic Print capabilities to my prototype IB
- application.
-
- I have a Text object in a Scrollview and I want the user to be able
- to print the content of the text object by selecting the Print menu
- option.
-
- I have added a Print menu item and wired it to the First Responder
- object and connected it to the printPSCode:sender method.
-
- My problem is that when I select the Print option the entire Window
- is printed; Frame view, text, the whole nine yards. I don't want the
- window frame to print, just the text.
-
- I gather I can implement my own method to do the printing with
- [[myScrollView contentView] printPSCode:sender]. The problem with
- this is that I have to establish a method for every view.
-
- Is there a way to do what I want using the First Responder? This is
- desirable because it will send the message wherever without me having
- to wire the connections.
-
- Thanks for any help.
-
- --
-
- Richard Low
- Duke University Medical Center
- low00001@bullnext.mc.duke.edu
- NeXT Mail welcome
-
-
- -- NewsGrazer, a NeXTstep(tm) news reader, posting --
- M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.WT*7&UA
- M<F=L,3(P"EQM87)G<C$R,`I<<&%R9%QT>#$S-#1<='@R-C@X7'1X-#`S,EQT
- M>#4S-S9<='@V-S(P7'1X.#`V-%QT>#DT,#A<='@Q,#<U,EQT>#$R,#DV7'1X
- M,3,T-#!<9C!<8C!<:3!<=6QN;VYE7&9S,CA<9F,P7&-F,"!))VT@=')Y:6YG
- M('1O(&%D9"!G96YE<FEC(%!R:6YT(&-A<&%B:6QI=&EE<R!T;R!M>2!P<F]T
- M;W1Y<&4@24(@87!P;&EC871I;VXN7`I<"DD@:&%V92!A(%1E>'0@;V)J96-T
- M(&EN(&$@4V-R;VQL=FEE=R!A;F0@22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