NAME
AnyEvent::Impl::NSRunLoop - AnyEvent adaptor for Cocoa NSRunLoop
SYNOPSIS
use AnyEvent;
use AnyEvent::Impl::NSRunLoop;
# do something
DESCRIPTION
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.
NOTICE
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 :)
AUTHOR
Daisuke Murase <typester@cpan.org>
COPYRIGHT AND LICENSE
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.