Old 2nd March 2003, 09:27   #1
Russ
Mostly Harmless
(Alumni)
 
Join Date: Jan 2001
Location: UK
Posts: 2,319
Textfeed problem...

Let's run this past some people, Brennan couldn't work out why this went wrong, and this thread can serve as somewhere to point people to.. This is all done with SDK and client build 495:

code:

class InfoFeed : public TextFeed {
public:
InfoFeed() { registerFeed("SInfo"); }
virtual ~InfoFeed(){};
static const char *getServiceName() { return "ATSF"; }
};
InfoFeed *i;


In onCreate (tried it in constructor as well, and in different callbacks)
code:

waServiceFactoryTSingle<svc_textFeed,InfoFeed> *f= new waServiceFactoryTSingle<svc_textFeed,InfoFeed>;
api->service_register(f);
i = f->getSingleService();
i->sendFeed("SInfo", "moo");


Now I'm accessing the feed like this:
code:

<Wasabi:Text id="status" display="SInfo" x="0" y="32" w="0" h="16" relatw="1" />
<Wasabi:Dropdownlist id="list" feed="SInfo" x="0" y="0" w="0" relatw="1" h="20" />


It works in the dropdownlist, it doesn't in the text! I ask you: WTF?

So, I open up the relevant prefs panel, I debug in DependentI::sendViewerCallbacks. It sends 2 callbacks - one to each control in there. But it's still only showing up in the dropdownlist.

For long you live and high you fly, but only if you ride the tide, and balanced on the biggest wave you race towards an early grave.
|Musicbrainz|Audioscrobbler|last.fm|
Russ is offline  
 
Go Back   Winamp & Shoutcast Forums > Winamp3 > Wasabi Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump