FROM : Teemu Keinonen
DATE : Fri Nov 23 11:52:34 2007
Is there any way to make connection to window server and create runloop
without using
> [NSApplication sharedApplication];
> [NSApp run];
pair? I want to create a library for screenshotting, not a standalone
application.
That application icon appearing to dock is very unwanted behaviour.
- T. Keinonen
On Nov 21, 2007 6:20 PM, Shawn Erickson <<email_removed>> wrote:
> 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 : Fri Nov 23 11:52:34 2007
Is there any way to make connection to window server and create runloop
without using
> [NSApplication sharedApplication];
> [NSApp run];
pair? I want to create a library for screenshotting, not a standalone
application.
That application icon appearing to dock is very unwanted behaviour.
- T. Keinonen
On Nov 21, 2007 6:20 PM, Shawn Erickson <<email_removed>> wrote:
> 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

