From: Kevin S. <kev...@ya...> - 2001-09-03 16:35:27
|
I started to work on a Browser sample, and saw that you can pass a 'data' value into add. To prevent GC from deleting the VALUE that the user passes us, we need to keep a reference to it. And we need to pass a void* into FLTK. Maybe we could have an Array member in each Browser object. Each time an item is added, we would add the data (if any) to the array, and also pass that same value (casted to void*) to FLTK. When an item is removed, we would get the data for that item, and remove it from the array. I guess someone could use the same data for multiple items, so the array would have to allow multiple copies of the same value. Does this make sense? Kevin __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com |