AnyEvent::Impl::NSRunLoop - AnyEvent adaptor for Cocoa NSRunLoop
use AnyEvent; use AnyEvent::Impl::NSRunLoop; # do something
This module provides NSRunLoop support to AnyEvent.
NSRunLoop is an event loop for Cocoa application. By using this module, you can use Cocoa based API in your AnyEvent application.
For example, using this module with Cocoa::Growl, you can handle growl click event.
my $cv = AnyEvent->condvar; # show growl notification growl_notify( name => 'Notification Test', title => 'Hello!', description => 'Growl world!', on_click => sub { warn 'clicked!'; $cv->send; }, ); $cv->recv;
Please look at Cocoa::Growl documentation for more detail.
This module is in early development phase. The implementation is not completed and alpha quality. See also skipped test cases in test directory.
Patches and suggestions are always welcome, let me know by email or on github :)
Daisuke Murase <typester@cpan.org>
Copyright (c) 2009 by KAYAC Inc.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install AnyEvent::Impl::NSRunLoop, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Impl::NSRunLoop
CPAN shell
perl -MCPAN -e shell install AnyEvent::Impl::NSRunLoop
For more information on module installation, please visit the detailed CPAN module installation guide.