FROM : Shawn Erickson
DATE : Wed Nov 21 17:20:37 2007
On Nov 21, 2007 6:15 AM, Teemu Keinonen <<email_removed>> wrote:
> Ok, figured it out myself. I get printouts now:
>
> [NSApplication sharedApplication];
> CGRegisterScreenRefreshCallback (MyScreenRefreshCallback, NULL);
> [NSApp run];
Yeah you need an active connection to the window server and an active
runloop in the main thread.
-Shawn
DATE : Wed Nov 21 17:20:37 2007
On Nov 21, 2007 6:15 AM, Teemu Keinonen <<email_removed>> wrote:
> Ok, figured it out myself. I get printouts now:
>
> [NSApplication sharedApplication];
> CGRegisterScreenRefreshCallback (MyScreenRefreshCallback, NULL);
> [NSApp run];
Yeah you need an active connection to the window server and an active
runloop in the main thread.
-Shawn
| Related mails | Author | Date |
|---|---|---|
| Teemu Keinonen | Nov 20, 13:02 | |
| Shawn Erickson | Nov 20, 16:14 | |
| Teemu Keinonen | Nov 21, 13:32 | |
| Teemu Keinonen | Nov 21, 15:15 | |
| Shawn Erickson | Nov 21, 17:20 | |
| Teemu Keinonen | Nov 23, 11:52 | |
| Nicko van Someren | Nov 24, 06:12 |






Cocoa mail archive

