Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.398.669 Times

MagicListener 1.0

  Date Added: July 09, 2013  |  Visits: 121

MagicListener

Report Broken Link
Printer Friendly Version


Product Homepage
Download (41 downloads)



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.Exemple:Without MagicListener:[Class1.m]classdef Class1 < handleeventsmyEventendend[Class2.m]classdef Class2 < handlemethodsfunction this = Class2( obj1 )addlistener( obj1, 'myEvent', @(H,E) this.callback() );endfunction callback( this )disp( 'CALLBACK!' );endendend>> obj1 = Class1();>> obj2 = Class2( obj1 );>> notify( obj1, 'myEvent' );CALLBACK!>> delete( obj2 );>> notify( obj1, 'myEvent' );Warning: Error occurred while executing callback:Invalid or deleted object.With MagicListener:[Class1.m]classdef Class1 < handleeventsmyEventendend[Class2.m]classdef Class2 < handlemethodsfunction this = Class2( obj1 )MagicListener( obj1, 'myEvent', @(H,E) this.callback(), this );endfunction callback( this )disp( 'CALLBACK!' );endendend>> obj1 = Class1();>> obj2 = Class2( obj1 );>> notify( obj1, 'myEvent' );CALLBACK!>> delete( obj2 );>> notify( obj1, 'myEvent' );

Requirements: No special requirements
Platforms: PHP
Keyword: Callback Class Events Handle Methods Myevent Notify Thiscallback
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


MAGICLISTENER RELATED
Libraries  -  AFS::ACL 2.4.0
AFS::ACL is a Perl class to handle the AFS Access Control Lists. SYNOPSIS use AFS::ACL; my $acl = AFS::ACL->new({foobar => none}, {anyuser => write}); $acl->set(rjs => write); $acl->nset(opusl => write); $acl->remove(rjsnfs => write);...
184.32 KB  
Programming  -  Class::ParamParser 1.041
This Perl 5 object class implements two methods which inherited classes can use to tidy up parameter lists for their own methods and functions. The two methods differ in that one returns a HASH ref containing named parameters and the other returns...
10.24 KB  
Networking Tools  -  Whois Ruby 0.3.0
Whois Ruby provides a Ruby class to handle whois requests. Whois Ruby is a Ruby class to obtain whois request information when provided with an IPv4/IPv6 address or hostname. It sends a whois query to a suitable server..
 
Libraries  -  Puppet::Body 1.018
Puppet::Body provides an utility class to handle has-a relations and logs. Puppet::Body is a utility class that is used (and not inherited like the deprecated Puppet::Any) to manage dynamic has-a relations between objects..
7.17 KB  
Libraries  -  Rose::DB::Object::Helpers 0.764
Rose::DB::Object::Helpers is a mix-in class containing convenience methods for Rose::DB::Object. SYNOPSIS package MyDBObject; use Rose::DB::Object; our @ISA = qw(Rose::DB::Object); use Rose::DB::Object::Helpers clone, { load_or_insert =>...
481.28 KB  
Development Tools  -  Class Inheritance Browser 1.0
This tool searches a given directory and populates a browser window with pertinent information about each discovered class, including properties, methods, and superclasses. Other useful features include opening a class definition file from the...
20.48 KB  
Programming  -  Dictionary Upgrade 1.1
Enhanced versions of the standard REALbasic Dictionary class that handle case sensitivity and preserve insertion order.
10.24 KB  
Libraries  -  AFS::KTC_TOKEN 2.4.0
AFS::KTC_TOKEN is a Perl class to handle the AFS structure ktc_token. SYNOPSIS use AFS::KTC_TOKEN; use AFS::KTC_PRINCIPAL; use AFS::KTC_EKEY; use AFS::Cell qw(localcell); my $token = AFS::KTC_TOKEN->nulltoken; print "StartTime = ",...
184.32 KB  
Development Editors  -  WMI Delphi Code Creator 1.1.2.170
The WMI Delphi Code Creator tool, allows you to generate Object Pascal and C++ code to access the WMI (Windows Management Instrumentation) classes, events and methods. This freeware tool is inspired by the WMI Code Creator. Features Can...
2.17 MB  
Libraries  -  Class::Contract 1.00
Class::Contract - Design-by-Contract OO in Perl. SYNOPSIS package ClassName use Class::Contract; contract { inherits BaseClass; invar { ... }; attr data1; attr data2 => HASH; class attr shared => SCALAR; ctor new; method...
26.62 KB  
NEW DOWNLOADS IN SCRIPTS, MODULES
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Modules  -  TinyMCE Node Picker 6.x-2.1
This module will de discontinued and replaced with Node Picker as soon as a stable release is available.TinyMCE Node Picker provides a button in TinyMCE that displays a list of links to content. Choosing a link inserts it into the editor.The...
20.48 KB  
Modules  -  Fapilicious 5.x-1.x-de
Fapilicious is a collection of FormAPI goodies.I hope to make it a repository of reusable FormAPI trickery and short cuts. Currently it has small collection of powerful FormAPI element validators.Please submit your favorite tricks as patches so we...
10 KB  
Modules  -  OpenCalais 6.x-3.6
The Calais Collection is an integration of the Thomson Reuters' Calais web service into the Drupal platform. The Calais Web Service automatically creates rich semantic metadata for the content you submit d-deOCt in well under a second. Using...
61.44 KB  
Modules  -  Donation Goals 6.x-1.x-de
The Donation Goals module lets you create nodes of the type "Donation Goal." These goals allow you to set an amount of money you'll need for whatever you're saving up for. Visitors of the site can then donate money through PayPal. Once the target...
20.48 KB  
Modules  -  Plica Twitter 1.0.1
Plica TwitterInstallation : * Download, unzip, and install plugin dir in /wp-content/plugins * Activate * All right now
10 KB