RE: [us...@lists.monobjc.net] Blocks and Monobjc

2010-06-10 Thread Oscar Blasco
From: laurent.etiem...@gmail.com [mailto:laurent.etiem...@gmail.com] On Behalf Of Laurent Etiemble Sent: jueves, 10 de junio de 2010 10:37 To: users@lists.monobjc.net Subject: Re: [us...@lists.monobjc.net] Blocks and Monobjc Hello, AFAIK, the method you describe should should work as

Re: [us...@lists.monobjc.net] Blocks and Monobjc

2010-06-10 Thread Laurent Etiemble
Hello, AFAIK, the method you describe should should work as Monobjc does not prevent the use of blocks. You just have to be careful about the scope of the blocks and their lifecycle. You didn't write what was your problem; does your application crash, or something else ? Regards, Laurent Etiembl

[us...@lists.monobjc.net] Blocks and Monobjc

2010-06-09 Thread Oscar Blasco
Hello all, I’m currently trying to add a keyboard hooking function using NSEvent:addGlobalMonitorForEventsMatchingMask method which needs a block as a callback. To be able to define that block I moved that piece of code to a native class in a Cocoa Framework. The framework is wrapped from Mono