Page 1 of 1

anonymous imageset ?

Posted: Sun Nov 11, 2007 23:36
by Pompei2
Hi,

Too bad the imageset constructors are private. Is there any way to create anonymous imagesets ?

I need to create a bunch of imagesets programatically, I don't have enough information to give them a unique name and I don't want to create a random name. I don't even need them to register into the imageset manager as I keep a pointer at them.

I tried to name them "" but I got an already exist exception.

Posted: Mon Nov 12, 2007 13:22
by scriptkid
I'm affraight there's no way to bypass the manager. That means you do rely on coming up with (random) names.

You can of course write your own helper routine which abstracts that process, to make your life a little easier.

HTH.

Posted: Tue Nov 13, 2007 00:07
by Pompei2
Hmmmm ok too bad :( Personally I think this should be implemented, maybe i'll do this and commit a patch to treat "" imagesets as anonymous, shouldn't be too hard unless I miss something.