home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5387 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  3.0 KB

  1. Path: sparky!uunet!gatech!concert!duke!news.duke.edu!bullnext.mc.duke.edu
  2. From: low00001@bullnext.mc.duke.edu (Richard Low)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: printPSCode: for aText object
  5. Keywords: Print Text
  6. Message-ID: <4189@news.duke.edu>
  7. Date: 31 Jul 92 13:34:05 GMT
  8. Sender: news@news.duke.edu
  9. Lines: 61
  10. Nntp-Posting-Host: homenext.mc.duke.edu
  11.  
  12. I'm trying to add generic Print capabilities to my prototype IB  
  13. application.
  14.  
  15. I have a Text object in a Scrollview and I want the user to be able  
  16. to print the content of the text object by selecting the Print menu  
  17. option.
  18.  
  19. I have added a Print menu item and wired it to the First Responder  
  20. object and connected it to the printPSCode:sender method.
  21.  
  22. My problem is that when I select the Print option the entire Window  
  23. is printed; Frame view, text, the whole nine yards.  I don't want the  
  24. window frame to print, just the text.
  25.  
  26. I gather I can implement my own method to do the printing with  
  27. [[myScrollView contentView] printPSCode:sender].  The problem with  
  28. this is that I have to establish a method for every view.
  29.  
  30. Is there a way to do what I want using the First Responder?  This is  
  31. desirable because it will send the message wherever without me having  
  32. to wire the connections.
  33.  
  34. Thanks for any help. 
  35.  
  36. --
  37.  
  38. Richard Low
  39. Duke University Medical Center
  40. low00001@bullnext.mc.duke.edu
  41. NeXT Mail welcome
  42.  
  43.  
  44. -- NewsGrazer, a NeXTstep(tm) news reader, posting --
  45. M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.WT*7&UA
  46. M<F=L,3(P"EQM87)G<C$R,`I<<&%R9%QT>#$S-#1<='@R-C@X7'1X-#`S,EQT
  47. M>#4S-S9<='@V-S(P7'1X.#`V-%QT>#DT,#A<='@Q,#<U,EQT>#$R,#DV7'1X
  48. M,3,T-#!<9C!<8C!<:3!<=6QN;VYE7&9S,CA<9F,P7&-F,"!))VT@=')Y:6YG
  49. M('1O(&%D9"!G96YE<FEC(%!R:6YT(&-A<&%B:6QI=&EE<R!T;R!M>2!P<F]T
  50. M;W1Y<&4@24(@87!P;&EC871I;VXN7`I<"DD@:&%V92!A(%1E>'0@;V)J96-T
  51. M(&EN(&$@4V-R;VQL=FEE=R!A;F0@22!W86YT('1H92!U<V5R('1O(&)E(&%B
  52. M;&4@=&\@<')I;G0@=&AE(&-O;G1E;G0@;V8@=&AE('1E>'0@;V)J96-T(&)Y
  53. M('-E;&5C=&EN9R!T:&4@4')I;G0@;65N=2!O<'1I;VXN7`I<"DD@:&%V92!A
  54. M9&1E9"!A(%!R:6YT(&UE;G4@:71E;2!A;F0@=VER960@:70@=&\@=&AE($9I
  55. M<G-T(%)E<W!O;F1E<B!O8FIE8W0@86YD(&-O;FYE8W1E9"!I="!T;R!T:&4@
  56. M<')I;G104T-O9&4Z<V5N9&5R(&UE=&AO9"Y<"EP*37D@<')O8FQE;2!I<R!T
  57. M:&%T('=H96X@22!S96QE8W0@=&AE(%!R:6YT(&]P=&EO;B!T:&4@96YT:7)E
  58. M(%=I;F1O=R!I<R!P<FEN=&5D.R!&<F%M92!V:65W+"!T97AT+"!T:&4@=VAO
  59. M;&4@;FEN92!Y87)D<RX@($D@9&]N)W0@=V%N="!T:&4@=VEN9&]W(&9R86UE
  60. M('1O('!R:6YT+"!J=7-T('1H92!T97AT+EP*7`I)(&=A=&AE<B!)(&-A;B!I
  61. M;7!L96UE;G0@;7D@;W=N(&UE=&AO9"!T;R!D;R!T:&4@<')I;G1I;F<@=VET
  62. M:"!;6VUY4V-R;VQL5FEE=R!C;VYT96YT5FEE=UT@<')I;G104T-O9&4Z<V5N
  63. M9&5R72X@(%1H92!P<F]B;&5M('=I=&@@=&AI<R!I<R!T:&%T($D@:&%V92!T
  64. M;R!E<W1A8FQI<V@@82!M971H;V0@9F]R(&5V97)Y('9I97<N7`I<"DES('1H
  65. M97)E(&$@=V%Y('1O(&1O('=H870@22!W86YT('5S:6YG('1H92!&:7)S="!2
  66. M97-P;VYD97(_("!4:&ES(&ES(&1E<VER86)L92!B96-A=7-E(&ET('=I;&P@
  67. M<V5N9"!T:&4@;65S<V%G92!W:&5R979E<B!W:71H;W5T(&UE(&AA=FEN9R!T
  68. M;R!W:7)E('1H92!C;VYN96-T:6]N<RY<"EP*5&AA;FMS(&9O<B!A;GD@:&5L
  69. M<"X@7`I<"BTM7`I<"E)I8VAA<F0@3&]W7`I$=6ME(%5N:79E<G-I='D@365D
  70. M:6-A;"!#96YT97)<"FQO=S`P,#`Q0&)U;&QN97AT+FUC+F1U:V4N961U7`I.
  71. 595A4($UA:6P@=V5L8V]M95P*"GT*
  72. `
  73.