From: Michael B. <mi...@mi...> - 2003-10-01 10:26:37
|
Hi again, Done debugging on the debugger :) The buffer and help is now working on IE (missed that) I added a version check for the DynAPI and Spock so that people know what versions they are using. They always show up in Spock's main window onload. Is there a way of getting the daily snapshot http://dynapi.sourceforge.net/snapshot/?N=3DD to be part of the dynapi.version tag or is there another way, this would be nice so that we always know what version people are having problems with. (just a thought) I've think that we should use the "help" section to show the DynAPI reference guild and help. Click on help and you'll see what I mean. Some minor cosmetics lifts. Added toStaus()=20 If you downloaded the first version you should use this one instead. Go and download, play, test, let me know what you think. http://www.michaelbystrom.com/download.php Michael > I=B9m back with a cold and some serious stomach problems, but I'm slowly > getting better :) >=20 > I just finished the debugger port to the DynAPI 3 >=20 > The name debug was already taken so I gave the name Spock :) yeah yeah I > know... >=20 > I made it backwards compatible with the original debugger so that there > should not be any problems, all the original calls are there ie: > dynapi.debug.print() etc. so if you want to use those. >=20 > These are the spock methods: > dump() =3D dynapi.debug.print() > inspect() =3D dynapi.debug.inspect() > toEval() =3D dynapi.debug.setEvaluate() > dynapi.status() =3D dynapi.debug.status() will change to toStatus() >=20 > You can easily change them to something that you feel much more your styl= e > I've used dump() for so long now that it would be real difficult to chang= e. >=20 > I've also tried to incorporate most of the original debugger features tha= t > mine didn't have, like the load scripts and reload scripts. >=20 > To load script manually type in the evaluate window > The rest is pretty self explanatory, this is a debug version so I might > missed something. >=20 > I can't get watch to work or I don=B9t understand it. >=20 > I also removed form (NS4.7) support for Spock, the original debugger does > this just fine. >=20 > Go and download, play, test, let me know what you think. > http://www.michaelbystrom.com/download.php >=20 > Michael |
From: Raymond I. <xw...@ya...> - 2003-10-01 13:58:41
|
Hi Michael, Spock just not working. Please simplify the installation. After unzipping the spock files I copied the spock/ folder to the root of my dynapi folder (dynapi3x/) and still got errors To make installations easier just make the apps behave as if they where inside the examples folder: example: dynapi3x/examples/my-app.html you could then copy the app to another folder in the dynapi3x/ root and it would still work: dynapi3x/my-folder/my-app.html now you can distribute "my-folder/" along with changes to the dynapi "src/" folder -- Raymond Irving --- Michael Bystrom <mi...@mi...> wrote: > Hi again, > > Done debugging on the debugger :) > > The buffer and help is now working on IE (missed > that) > I added a version check for the DynAPI and Spock so > that people know what > versions they are using. They always show up in > Spock's main window onload. > > Is there a way of getting the daily snapshot > http://dynapi.sourceforge.net/snapshot/?N=D > to be part of the dynapi.version tag or is there > another way, this would be > nice so that we always know what version people are > having problems with. > (just a thought) > > I've think that we should use the "help" section to > show the DynAPI > reference guild and help. Click on help and you'll > see what I mean. > > Some minor cosmetics lifts. > > Added toStaus() > > If you downloaded the first version you should use > this one instead. > > Go and download, play, test, let me know what you > think. > http://www.michaelbystrom.com/download.php > > Michael > > > > I¹m back with a cold and some serious stomach > problems, but I'm slowly > > getting better :) > > > > I just finished the debugger port to the DynAPI 3 > > > > The name debug was already taken so I gave the > name Spock :) yeah yeah I > > know... > > > > I made it backwards compatible with the original > debugger so that there > > should not be any problems, all the original calls > are there ie: > > dynapi.debug.print() etc. so if you want to use > those. > > > > These are the spock methods: > > dump() = dynapi.debug.print() > > inspect() = dynapi.debug.inspect() > > toEval() = dynapi.debug.setEvaluate() > > dynapi.status() = dynapi.debug.status() will > change to toStatus() > > > > You can easily change them to something that you > feel much more your style > > I've used dump() for so long now that it would be > real difficult to change. > > > > I've also tried to incorporate most of the > original debugger features that > > mine didn't have, like the load scripts and reload > scripts. > > > > To load script manually type in the evaluate > window > > The rest is pretty self explanatory, this is a > debug version so I might > > missed something. > > > > I can't get watch to work or I don¹t understand > it. > > > > I also removed form (NS4.7) support for Spock, the > original debugger does > > this just fine. > > > > Go and download, play, test, let me know what you > think. > > http://www.michaelbystrom.com/download.php > > > > Michael > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: Raymond I. <xw...@ya...> - 2003-10-01 14:06:11
|
Sorry I did not see the install file. I'm use to a "readme.txt" or similar file. I still think this structure is easier: spock/examples/spock.html spock/src/ext/packages.js spock/src/spock/ spock/src/bystrom now if I were to copy the content of spock/ into dynapi3x/ then it should just work. Just a thought! -- Raymond Irving --- Raymond Irving <xw...@ya...> wrote: > Hi Michael, > > Spock just not working. Please simplify the > installation. After unzipping the spock files I > copied > the spock/ folder to the root of my dynapi folder > (dynapi3x/) and still got errors > > To make installations easier just make the apps > behave > as if they where inside the examples folder: > > example: > > dynapi3x/examples/my-app.html > > you could then copy the app to another folder in the > dynapi3x/ root and it would still work: > > dynapi3x/my-folder/my-app.html > > now you can distribute "my-folder/" along with > changes > to the dynapi "src/" folder > > -- > Raymond Irving > > > --- Michael Bystrom <mi...@mi...> > wrote: > > Hi again, > > > > Done debugging on the debugger :) > > > > The buffer and help is now working on IE (missed > > that) > > I added a version check for the DynAPI and Spock > so > > that people know what > > versions they are using. They always show up in > > Spock's main window onload. > > > > Is there a way of getting the daily snapshot > > http://dynapi.sourceforge.net/snapshot/?N=D > > to be part of the dynapi.version tag or is there > > another way, this would be > > nice so that we always know what version people > are > > having problems with. > > (just a thought) > > > > I've think that we should use the "help" section > to > > show the DynAPI > > reference guild and help. Click on help and you'll > > see what I mean. > > > > Some minor cosmetics lifts. > > > > Added toStaus() > > > > If you downloaded the first version you should use > > this one instead. > > > > Go and download, play, test, let me know what you > > think. > > http://www.michaelbystrom.com/download.php > > > > Michael > > > > > > > I¹m back with a cold and some serious stomach > > problems, but I'm slowly > > > getting better :) > > > > > > I just finished the debugger port to the DynAPI > 3 > > > > > > The name debug was already taken so I gave the > > name Spock :) yeah yeah I > > > know... > > > > > > I made it backwards compatible with the original > > debugger so that there > > > should not be any problems, all the original > calls > > are there ie: > > > dynapi.debug.print() etc. so if you want to use > > those. > > > > > > These are the spock methods: > > > dump() = dynapi.debug.print() > > > inspect() = dynapi.debug.inspect() > > > toEval() = dynapi.debug.setEvaluate() > > > dynapi.status() = dynapi.debug.status() will > > change to toStatus() > > > > > > You can easily change them to something that you > > feel much more your style > > > I've used dump() for so long now that it would > be > > real difficult to change. > > > > > > I've also tried to incorporate most of the > > original debugger features that > > > mine didn't have, like the load scripts and > reload > > scripts. > > > > > > To load script manually type in the evaluate > > window > > > The rest is pretty self explanatory, this is a > > debug version so I might > > > missed something. > > > > > > I can't get watch to work or I don¹t understand > > it. > > > > > > I also removed form (NS4.7) support for Spock, > the > > original debugger does > > > this just fine. > > > > > > Go and download, play, test, let me know what > you > > think. > > > http://www.michaelbystrom.com/download.php > > > > > > Michael > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > > http://www.mail-archive.com/dyn...@li.../ > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product > search > http://shopping.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: Michael B. <mi...@mi...> - 2003-10-01 14:37:27
|
Well Spock needs you to replace 2 original files: dynapi.js ext/packages.js I thought that this would be simpler so that people just don't overwrite everything by adding folder... I can't have a single folder "spock" for that reason :) > Sorry I did not see the install file. I'm use to a > "readme.txt" or similar file. > > I still think this structure is easier: > > spock/examples/spock.html > spock/src/ext/packages.js > spock/src/spock/ > spock/src/bystrom > > now if I were to copy the content of spock/ into > dynapi3x/ then it should just work. > > Just a thought! > > -- > Raymond Irving |
From: Michael B. <mi...@mi...> - 2003-10-01 15:02:14
|
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 |
From: Raymond I. <xw...@ya...> - 2003-10-01 17:43:26
Attachments:
dynapi.zip
|
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 <mi...@mi...> 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 > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: Michael B. <mi...@mi...> - 2003-10-02 06:51:57
|
Ok it's sorta working then hehe :) I started to look into this but there are soooo much new code, need to get that feeling you know... Problem 2) There would be to much typing for this so I took 2 screen shoots to show In sort; the packages are not loaded if added inside main html document. I'm under the impression that this should work? Here is a working test http://www.michaelbystrom.com/download/dev/ok-lib.gif Not working http://www.michaelbystrom.com/download/dev/no-lib.gif am I doing something wrong? For developers that only what to add their own litte widget this should be the way don't you think Michael > 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 |
From: Raymond I. <xw...@ya...> - 2003-10-02 14:09:48
|
Hi, Notice that you're using dynapi.library.path before you call the dynapi.library.setPath() function. This should be the correct way: dynapi.library.setPath('../src/'); // add your packages after // you've set the library path dynapi.library.addPackage('bystrom',dynapi.library,path); dynapi.library.add('bystrom.Button','bystrom/gui/button.js'); The above should now work but personally I would write it like this: dynapi.library.addPackage('bystrom',dynapi.library,path+'bystrom/'); dynapi.library.add('bystrom.Button','gui/button.js','DynLayer'); // where the Button is Dependent on the DynLayer object -- Raymond Irving --- Michael Bystrom <mi...@mi...> wrote: > > > Ok it's sorta working then hehe :) I started to look > into this but there are > soooo much new code, need to get that feeling you > know... > > > > Problem 2) > > There would be to much typing for this so I took 2 > screen shoots to show > In sort; the packages are not loaded if added inside > main html document. > I'm under the impression that this should work? > > Here is a working test > http://www.michaelbystrom.com/download/dev/ok-lib.gif > > Not working > http://www.michaelbystrom.com/download/dev/no-lib.gif > > am I doing something wrong? > > For developers that only what to add their own litte > widget this should be > the way don't you think > > Michael > > > > 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 > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: Michael B. <mi...@mi...> - 2003-10-02 21:53:37
|
Arghhh I can't believe it, I totally missed that one... Hats of to you Ray :) It's been raining here in Sweden... yep that's it.... hehe > Hi, > > Notice that you're using dynapi.library.path before > you call the dynapi.library.setPath() function. > > This should be the correct way: > > dynapi.library.setPath('../src/'); > > // add your packages after > // you've set the library path > dynapi.library.addPackage('bystrom',dynapi.library,path); > dynapi.library.add('bystrom.Button','bystrom/gui/button.js'); > > The above should now work but personally I would write > it like this: > > dynapi.library.addPackage('bystrom',dynapi.library,path+'bystrom/'); > dynapi.library.add('bystrom.Button','gui/button.js','DynLayer'); > // where the Button is Dependent on the DynLayer > object > > > -- > Raymond Irving > > > --- Michael Bystrom <mi...@mi...> > wrote: >> >> >> Ok it's sorta working then hehe :) I started to look >> into this but there are >> soooo much new code, need to get that feeling you >> know... >> >> >> >> Problem 2) >> >> There would be to much typing for this so I took 2 >> screen shoots to show >> In sort; the packages are not loaded if added inside >> main html document. >> I'm under the impression that this should work? >> >> Here is a working test >> > http://www.michaelbystrom.com/download/dev/ok-lib.gif >> >> Not working >> > http://www.michaelbystrom.com/download/dev/no-lib.gif >> >> am I doing something wrong? >> >> For developers that only what to add their own litte >> widget this should be >> the way don't you think >> >> Michael >> >> >>> 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 |
From: Dan S. <ds...@dy...> - 2003-10-03 18:39:03
|
It's been a while but as I remember the library I wrote keeps a global list of objects: dynapi.library._objects['Button'] That contains the other information like the path of the file required etc. When you have conflicting names one will be overwritten. It's a bit of a design flaw, it should be stored with the full library name _objects['dynapi.gui.Button'] instead. I imagine that somewhere along the line your script needed the 'Button' object and it thought you meant dynapi.gui.Button. You could probably wipe out the .gui from the library dependencies, but that is only a workaround. Dan Steinman On Wed, Oct 01, 2003 at 05:01:33PM +0200, Michael Bystrom 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 > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ |
From: Leif W <war...@us...> - 2003-10-03 19:15:44
|
It seems the only occurance of _objects is in dynapi.js, and excluding initial variable declaration, it's only modified in p.add and p._queue where p is DynObject.prototype, and only in like two or three places in total, so it shouldn't be too difficult to modify. But what else refers to the _objects array? What might happen if I change the the code to insert the full library name as opposed to the tail only? I'm going to try some changes on my own and see what happens. Leif ----- Original Message ----- From: "Dan Steinman" <ds...@dy...> To: <dyn...@li...> Sent: Friday, October 03, 2003 2:51 PM Subject: Re: [Dynapi-Dev] Upgrade questions library > It's been a while but as I remember the library I wrote keeps a global list of objects: > > dynapi.library._objects['Button'] > > That contains the other information like the path of the file required etc. When you have conflicting names one will be overwritten. It's a bit of a design flaw, it should be stored with the full library name _objects['dynapi.gui.Button'] instead. I imagine that somewhere along the line your script needed the 'Button' object and it thought you meant dynapi.gui.Button. You could probably wipe out the .gui from the library dependencies, but that is only a workaround. > > Dan Steinman > > > On Wed, Oct 01, 2003 at 05:01:33PM +0200, Michael Bystrom 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 > > Dyn...@li... > > http://www.mail-archive.com/dyn...@li.../ > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ > > |
From: Michael B. <mi...@mi...> - 2003-10-01 14:40:10
|
What is the new name for e.cancelBrowserEvent() Or is this removed Michael |
From: <bo...@co...> - 2003-10-01 15:20:24
|
2003. okt=F3ber 1. 16.39 d=E1tummal Michael Bystrom ezt =EDrta: > What is the new name for > e.cancelBrowserEvent() > Or is this removed I think it's a cancelEvt PROPERTY; maybe try this: e._cancelEvt=3Dtrue; Cow |
From: Raymond I. <xw...@ya...> - 2003-10-01 15:25:42
|
I think e.preventBubble() -- Raymond Irving --- Michael Bystrom <mi...@mi...> wrote: > What is the new name for > e.cancelBrowserEvent() > Or is this removed > > Michael > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |