jeraymond / NP-Markdown

A simplistic Markdown editor and previewer for OS X
5 stars 2 forks source link

Printing does not work #1

Open apaeffgen opened 9 years ago

apaeffgen commented 9 years ago

Activating the print command from the menu does nothing. MacOS 10.9.4 Xcode 5.1.1 Latest Source-Code

Some console errors: 16.09.14 21:36:09,662 NP Markdown[75004]: printOperationWithSettings:error: is a subclass responsibility but has not been overridden. 16.09.14 21:36:09,666 NP Markdown[75004]: ( 0 CoreFoundation 0x00007fff897c625c exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8d95ae75 objc_exception_throw + 43 2 CoreFoundation 0x00007fff897c610c +[NSException raise:format:] + 204 3 AppKit 0x00007fff9164aa9e -[NSDocument printOperationWithSettings:error:] + 122 4 AppKit 0x00007fff9164a235 93-[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:]_block_invoke_2 + 560 5 AppKit 0x00007fff91658630 -[NSDocument _commitEditingThenContinue:] + 501 6 AppKit 0x00007fff916587dd -[NSDocument _commitEditingWithDelegate:didSomethingSelector:contextInfo:thenContinue:] + 138 7 AppKit 0x00007fff91649ff6 __93-[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:]_block_invoke + 392 8 AppKit 0x00007fff9161bc47 -[NSDocument performActivityWithSynchronousWaiting:usingBlock:cancellationHandler:] + 66 9 AppKit 0x00007fff91649e5f -[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:] + 153 10 AppKit 0x00007fff91649bea -[NSDocument printDocument:] + 73 11 AppKit 0x00007fff913cf260 -[NSApplication sendAction:to:from:] + 327 12 AppKit 0x00007fff913ea1c8 -[NSMenuItem _corePerformAction] + 394 13 AppKit 0x00007fff913e9f04 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 117 14 AppKit 0x00007fff9143940d -[NSMenu _internalPerformActionForItemAtIndex:] + 35 15 AppKit 0x00007fff91439289 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 104 16 AppKit 0x00007fff913dfff6 NSSLMMenuEventHandler + 716 17 HIToolbox 0x00007fff9037f1d4 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 892 18 HIToolbox 0x00007fff9037e787 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 385 19 HIToolbox 0x00007fff90392880 SendEventToEventTarget + 40 20 HIToolbox 0x00007fff903c8640 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 420 21 HIToolbox 0x00007fff903fb228 SendMenuCommandWithContextAndModifiers + 59 22 HIToolbox 0x00007fff903fb1d0 SendMenuItemSelectedEvent + 178 23 HIToolbox 0x00007fff903fb0af ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2 + 94 24 HIToolbox 0x00007fff90403085 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 718 25 HIToolbox 0x00007fff90402cb1 _HandleMenuSelection2 + 446 26 AppKit 0x00007fff9135262c _NSHandleCarbonMenuEvent + 284 27 AppKit 0x00007fff911b152e _DPSNextEvent + 2170 28 AppKit 0x00007fff911b089b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122 29 AppKit 0x00007fff911a499c -[NSApplication run] + 553 30 AppKit 0x00007fff9118f783 NSApplicationMain + 940 31 NP Markdown 0x0000000100001b76 main + 198 32 libdyld.dylib 0x00007fff87b9f5fd start + 1 )

jeraymond commented 9 years ago

You are right, I didn't get around to adding print support. Feel free to open a PR with a patch to add this feature.