playlist_callback_static implementation 2008-07-21 11:42:40 I have Columns UI extension. It can have multiple instances (windows).I have playlist_callback_static implementation. Its callback methods call static methods of my extension (which redraw all my windows etc.)I'm using this code to 'register' my callback class:Code: [Select]static service_factory_single_transparent_t< my_playlist_callback > foo1;Now, the question. I want to use my static callback class ONLY when there are one ore more instances of my UI extension (=multiple displayed windows/panels).What I'm using now is declare global variable instance_tracker_server_t< my_extension > g_instances. Then inside each callback method (on_playlist_activate, on_playlist_created, on_playlists_reorder, etc.) I check if g_instances.get_count() > 0.Is there 'nicer' method to do this?