Re: [bme-develop] emoticon code in cvs
Status: Planning
Brought to you by:
sirmik
|
From: Simon T. <sim...@ga...> - 2004-04-06 17:42:58
|
> Hi, > > >Yes, I wouldn't call methods from different threads. However instead > > of > >passing a pointer to the List itself, pass a pointer to the actual > > data > >(can be obtained from BList::Items()) along with the number of > > items. > >Then each thread will have their own independent pointer to the > > data, > >and providing the actual list data is not changed, they can both > > read > >the actual items in the list at the same time. > > > Ah right, I'll pass a pointer to the Items them...we probably only > need this > list in the emoticon choosing view(the emoticon matrix) in the chat > window > right? Yeh, can't think of anywhere else that would need it. > >I would have the IconHandler deal with everything. So in the main > > bme > >code we just need > >iconHandler = new IconHandler(); > >and then the icon handler constructor takes care of creating the > > other > >classes it needs, creating a list of emoticons, populating it, > > managing > >the list, etc. > > > Mmm, problem I have with this approach is that the Handler will be > loading > the icon's...a task it should do....we also can't separate the > loading of > the icons and the starting of the handler, which maybe necessary! Well the handler could create an IconLoader in its constructor. All of that will be done before any messages are processed anyway. Why would we want to seperate the loading of the icons from having a handler? That would mean we would have all the emoticons loaded in memory, but no way of doing anything with them?? > regards, > > Tim Simon |