jamoma / JamomaCore

Jamoma Frameworks for Audio and Control Structure
Other
36 stars 14 forks source link

TTObjectBase: need to know the number of observers registered for notification #318

Closed theod closed 9 years ago

theod commented 9 years ago

For the moment I have added those lines to TTObjecBase.h

TTUInt32 getObserversCount() {return observers.getSize();}

Is it ok for you @tap ?

theod commented 9 years ago

but it seems I need to make this method as a const method and so I need TTList::getSize() too also be const. why TTList::getSize() is not const @tap ?

tap commented 9 years ago

It probably isn't const because someone (probably me) forgot to add that when I wrote this code 10 years ago? :-)

For correct English grammar (if that matters) it should be called getObserverCount() instead of getObserversCount() -- no 's'. Cheers!

Tim

On Mon, Nov 17, 2014 at 10:21 AM, theod notifications@github.com wrote:

but it seems I need to make this method as a const method and so I need TTList::getSize() too also be const. why TTList::getSize() is not const ?

— Reply to this email directly or view it on GitHub https://github.com/jamoma/JamomaCore/issues/318#issuecomment-63329954.

theod commented 9 years ago

ok fine ! thanks for improving my english grammar :-)

theod commented 9 years ago

done !