3

I wanna know if anyone managed to print raster graphics to Star Micronics thermal printers using the StarIO sdk on a background thread? I tried to do that and the printer just won't print.

This is quite annoying because each time I try to print something to the printer, the entire app will just freeze until the operation is done, usually on a LAN connected printer it won't be that noticable, but on a bluetooth thermal printer it's unacceptable.

Thanks

4

2 回答 2

4

查看https://github.com/opentable/star-printing以获取使用 NSBlockOperation 和 NSOperationQueue 在后台线程上运行打印作业的示例。他们还对 StarIO 框架进行了很好的包装,更易于使用。

于 2014-07-28T16:43:52.463 回答
2

我编写了自己的驱动程序来解决我在使用 Star 提供的驱动程序时遇到的几个问题。它确实在后台线程上打印。

https://github.com/gabebear/TSPPrintingExample

于 2014-10-27T14:45:10.067 回答