[Pharo-project] [COTDC] 4 - RecategorizedEvent

Cédrick Béler cdrick65 at gmail.com
Tue Feb 8 10:31:51 CET 2011



> Also, AbstractEvent is not commented: 

and all subclasses... may be not needed to comment them all (except examples maybe - but if they vanish... :) )... all are in system-change-notification category

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 13957 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20110208/64fd6f15/attachment.png>
-------------- next part --------------



> 
> I'm a generic event raised by the system (SystemChangeNotifier) when anything (both classes or methods) changes in the system.
> Each one of my children represents a specific kind of event the system can notify. 
> 
> Now I will soon fade away and be replaced by announcements. 
> 
> (not a lot imaginative, but works :)) 
> 
> El 07/02/2011, a las 3:25p.m., St?phane Ducasse escribi?:
> 
>> I'm an event raised by the system (SystemChangeNotifier) when a class or a method changed its category. The way to create my instances is the following:
>> 
>> 
>> (RecategorizedEvent 
>> 	method: (aClass compiledMethodAt: selector ifAbsent: [nil])
>> 	selector: selector
>> 	protocol: newCategory
>> 	class: aClass
>> 	oldProtocol: oldCategory)
>> 
>> 
>> (RecategorizedEvent 
>> 	class: aClass
>> 	category: newCategory
>> 	oldCategory: oldCategory)
>> 
>> Now I will soon fade away and be replaced by announcements. 
>> 
>> 
>> 
>> 
>> 
>> On Feb 7, 2011, at 6:25 PM, laurent laffont wrote:
>> 
>>> Comment Of The Day Contest - One Day One Comment
>>> Rules: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s).
>>> 
>>> 
>>> Today: RecategorizedEvent
>>> 
>>> 
>>> Laurent
>> 
>> 
> 
> 



More information about the Pharo-project mailing list