Home > By category > Scripts >Modules > MagicListener


  • Downloads: 
  • Views: 
  • Rating:

MagicListener constructor creates a listener just like the addlistener function. The difference is the constructor accepts one more input, one object or a cell of objects, and the life cycle of the returned object will be linked also on these objects.


Without MagicListener:

classdef Class1 < handle

classdef Class2 < handle
function this = Class2( obj1 )
addlistener( obj1, 'myEvent', @(H,E) this.callback() );
function callback( this )
disp( 'CALLBACK!' );

>> obj1 = Class1();
>> obj2 = Class2( obj1 );
>> notify( obj1, 'myEvent' );
>> delete( obj2 );
>> notify( obj1, 'myEvent' );
Warning: Error occurred while executing callback:
Invalid or deleted object.

With MagicListener:

classdef Class1 < handle

classdef Class2 < handle
function this = Class2( obj1 )
MagicListener( obj1, 'myEvent', @(H,E) this.callback(), this );
function callback( this )
disp( 'CALLBACK!' );

>> obj1 = Class1();
>> obj2 = Class2( obj1 );
>> notify( obj1, 'myEvent' );
>> delete( obj2 );
>> notify( obj1, 'myEvent' );

Free download from Shareware Connection - MagicListener constructor creates a listener just like the addlistener function

Publisher: Benoit Charles | License: Shareware
Version: 1.0 | Size: 10 KB | Platform: PHP, Scripts
Released Date: 25-05-2013 | Rating: 0 | Title: MagicListener

Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/34606/1/MagicListener.zip

More downloads from MagicListener publisher Benoit Charles:

Cacofonix - Cacofonix is a library to create midi files. A complete documentation is provided in the archive.

MagicListener keywords:
MagicListener related downloads:

Events in JavaScript: An Inside Look - Events are the glue which hold together the word inter-active. In learning to control and handle events you bridge the gap between a two-dimensional web page and a three-dimensional one.

Connect Daily - Connect Daily web calendars handle events, meetings, projects and resources.

Scanner Button Daemon Handler Scripts - sbd-scripts is a set of shell scripts used to handle events from scanbuttond

Win32GUI - Win32 GUI Generics - C++ Generic lib for Win32 GUI Programming. Features: GUI RAII, no msg maps, easy to handle events/event ranges, fast compilation times, no main loop... Portable: vc71,gcc,como. Devel.

RAVER Rows - RAVER Rows is a proyect for a suite of php classes to provide cross-database access and multiple tools for common editing data such as field class, recordset class, browse class (including new, edit and delete methods), combo class, database class, s

Shareware Connection periodically updates pricing and software information of 'MagicListener' from company source 'Benoit Charles' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'MagicListener' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of MagicListener.

New Reviews

Panda Cloud Cleaner - PC security has become a tricky and complicated subject both for home users and network supervisors, with complexity and risk factors multiplying over the years. Using a single antivirus app may not be enough anymore. That explains why many users ...

WebAcappella - Web design sector has witnessed several trends and technological innovations affect website development in big ways. With time, designing websites has become easier. Nowadays, you can find web design software that nearly eliminates the need to ...

Trend Micro HouseCall - With time, PC users find it increasingly difficult to keep their systems free of malware and rogue apps, despite using latest and feature packed security software. This is mostly owing to the evolving nature of malware and newer types of ...

WWPass BlackBook and Personal Secure Storage - With time, PC security is turning out to be more complex and tedious matter. You can no longer rely on security apps but ensuring privacy of data is also important. While many password manager apps offer secure data encryption options, losing the ...

Backup Dwarf Home Edition - Making backups of data and media content has become extremely important for computer users nowadays. Owing to hardware failure, you may end up losing gigabytes of precious data. Besides, you may not want to leave sensitive data accessible to all ...

Cryper - Nowadays PC users can no longer rely completely on any security software. Newer ways of data theft and exploits are emerging on the horizon, making PC security a complicated and worrisome thing. If you are particular about the data you store in ...

Quick Heal PCTuner - Performance deficit or unexpected slowdown is something most PC users are acquainted with. Even those with powerful laptops and desktops have to face these issues from time to time. A PC can run slowly when temporary files clutter the HDD or ...

Tiranium Premium Security 2014 - Antivirus or Internet security software has become a mandatory requirement for computer users, including casual users and network administrators. However, it is quite commonplace for average PC users to get a little confused when selecting a ...

Cubase Artist - Professional audio editors and artists dealing in MIDI composition have a soft corner for Steinberg Cubase Artist. Its origin can be traced back to Atari ST and in later years, the app made way into PCs and Macs. The latest version is a flexible ...

Reallusion iClone - Nowadays, there is no scarcity of 3D animation and modeling software in market. However, not all such apps are user friendly and easy on wallet. If you want an intuitive and capable tool for making 3D animations without requiring much time, give ...

New Downloads

Instant Position Website

Large collection of search
engine optimization and
submission tools designed for
webmasters, site owners,
marketers or ...

arkavis sidebar plugin

arkavis.de provides a way for
easily hundreds of games in
your WordPress automatically
integrate and apply new games.

Rohde & Schwarz CMD55
Digital Radiocom Tester

This is a MATLABâ„¢ instrument
driver for use with v2.0 of
the Instrument Control
Toolboxd-OC?D? and higher

routh stability criteria
table generator

It needs highest power and
coefficients of the
characteristic equation.

WordPress Post Update Links

Who doesn't know this: You
published a post


ReSiCA-PHP is an
implementation of a very
simple centralized
authentication mecanism.


INTENT creates a plot of
relationships between mfiles
in the current directory

SVN Profiling

Read data from files tagged
with SVN
keywords [svn_profile,svn_str
] =
ords,strs) This ...


This function converts a gray
coded string to its equivalent
decimal representation

Simulation for Ballistic

This small program simulates
ballistic deposition for
surface growth

i-trax for Scripts

i-trax is a simple and easy to
use software system for your
mobile device.

Heuristic Algorithm for
finding Maximum Independent

findMIS is an heuristic
algorithm for solving Maximum
Independent Set problem (MIS)