How do I use Monikers?



Hi,

I assumed the following line of code:
    object = bonobo_get_object ("file:" FILENAME,
				"IDL:Bonobo/Media/Stream:1.0",
				&ev);
would do the following:
1, read the file and determine its mime type
2, query OAF for a component implementing the given IDL, and the mime type
3, activate the component got by (2) and query for PersistFile 
4, if PersistFile is not found, query for PersistStream, load the file,
and load it to the PersistStream interface

Obviously, all this is not happening. Looking at the `file:' moniker's
code, it's something much more simple.
Which moniker should I use for this level of smartness needed?

-- 
   .--= ULLA! =----------------------------.  finger cactus cactus rulez org
   \      http://cactus.rulez.org           \   for PGP public key
    `----------= cactus cactus rulez org =--'
Why experiment on animals when there are so many lawyers?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]