Re: Passing NSTextField Pointer to IOUSBInterfaceInterface182 Callback

2013-04-11 Thread Jens Alfke
On Apr 8, 2013, at 3:07 PM, Caylan Larson wrote: > I'm doing an asynchronous read from a USB printer. The read works correctly. > My trouble is updating a NSTextField from within the callback. I don’t know the USB API, but I’d guess the callback gets invoked on some background thread, in wh

Passing NSTextField Pointer to IOUSBInterfaceInterface182 Callback

2013-04-11 Thread Caylan Larson
I'm doing an asynchronous read from a USB printer. The read works correctly. My trouble is updating a NSTextField from within the callback. > -(IBAction)printTest:(id)sender > { …. > NSLog(@"starting async read: %@", _printerOutput); > NSLog(@"_printerOutput pointer = %p",