i have mac app. in mac app 1 of screen has scrollview
contains text field. on same screen have button needs provide print option. text of text field can printed. print button should call mac os x print dialog box. able open print dialog box connecting button print option of first responder through xib when preview don't see text except print button. please help.
check out nsprintoperation class reference. nsprintoperation class reference
you need compose text nsview large enough fit scroll view contents... haven't ever had print scrollview, don't know.
look @
+ printoperationwithview:
you have override print: action, remember sending first responder... , should fall through nsdocument or nsapplication subclass, try grab @ nsdocument if document based, nswindow (subclass or delegate) if not.
Comments
Post a Comment