I see the problem. The library system is not respecting the object's namespace.
The attached file is a quick fix. But library.js will still register dynapi.gui.Button as being loaded even though it's not loaded. Remember that if you use dynapi.library.include('Button') it will load the last Button object that was added to the library. If you need to load specific libraries then you will have to use their full names: dynapi.library.include('bystrom.Button') or dynapi.library.include(dynapi.gui.Button') PS. This temp fix has not been tested with dependencies. Dan will have to look more into this problem. -- Raymond Irving -- Raymond Irving --- Michael Bystrom <[EMAIL PROTECTED]> wrote: > Hi folks here we go lets start with the library! > > This will be the new structure for the IOS port: > > dynapi.library.addPackage('bystrom',dynapi.library.path); > dynapi.library.add('bystrom.Button','bystrom/gui/button.js'); > etc... > > > Now before I go into debug hell I would like some > answers to some library > questions. > > > We have a simple load set up like this: > > dynapi.library.setPath('../src/'); > dynapi.library.include('dynapi.spock'); > dynapi.library.include('dynapi.api'); > dynapi.library.include('library'); > dynapi.library.include('bystrom'); > > > Note the "bystrom" include this will load all that I > have in that package > (right?) > > > Now if I do this the API will load the DynAPI gui > components and mine. > loaded [dynapi.gui.BorderManager] > loaded [dynapi.gui.StyleManager] > loaded [dynapi.gui.Highlighter] > loaded [dynapi.gui.Button] > loaded [dynapi.gui.ButtonStyle] > > Why does it do this? > > I will not rename my widgets from Button to > IOSButton or something similar. > What is the secret I've missed. There has to be a > way. > > Is not bystrom it's own unique object? > > Michael > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > [EMAIL PROTECTED] > http://www.mail-archive.com/[EMAIL PROTECTED]/ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
dynapi.zip
Description: dynapi.zip