I'd like to reserve setPosition() to allow relative vs absolute positioning, and obviously it wouldn't make sense to have both setPos() and setPosition().
I'd rather not get into an argument over saving a few bytes here and there as I've never felt it to be of significant importance. My total file size for the core files is virtually the same as 2.5x - and this includes a very large number of changes and new features. And I'll be providing a compressed single file version of the core objects. If you want to save file size that badly you're better off renaming all the fucntions and properties to stuff like this.sp(x,y) this.ss(w,h). You can make big changes like this to the DynAPI very easily with a global search and replace function like that in the HomeSite html editor. Regards, Dan Steinman On Mon, Nov 19, 2001 at 07:31:42PM +0100, Michael B�rge wrote: > my suggestion is to call that method setPos(). > same bytesize as moveTo() and consistent with the getXXX() and setXXX() > philosophy. > anybody? > > -- > Michael Buerge > > > From: Dan Steinman <[EMAIL PROTECTED]> > > Date: Mon, 19 Nov 2001 13:12:35 -0500 > > To: [EMAIL PROTECTED] > > Subject: Re: [Dynapi-Dev] Proposed feature changes > > > > The reason I changed to setLocation is because moveBy and moveTo were very out > > of place next to all the other methods of DynLayer: setX() setY() setSize() > > moveTo() just doesn't make sense. > > > > And plus there are endless numbers of ways to get your 5 bytes back. > > > > My new anchoring system (which totally kicks butt btw) saves considerable file > > size in widgets because you end up not ever having to call setLocation or > > setSize because it's handled automatically. > > > > Dan > > > > On Mon, Nov 19, 2001 at 08:45:55AM -0800, Raymond Irving wrote: > >> > >> --- Dan Steinman <[EMAIL PROTECTED]> wrote: > >>> Some of my changes in 2.6 are costmetic also, such > >>> as setLocation() replacing moveTo(). > >> > >> It just hit me. Why change moveTo() to setLocation()? > >> moveTo() consist of only 6 characters while > >> setLocation() consist of 11 characters. In essence > >> setLocation uses 5 byes more than moveTo. This might > >> seem insignificant now but wait until numerous calls > >> are made using setLocation. > >> > >> Just a thought! > >> > >> -- > >> Raymond > >> > >> > >> __________________________________________________ > >> Do You Yahoo!? > >> Find the one for you at Yahoo! Personals > >> http://personals.yahoo.com > >> > >> _______________________________________________ > >> Dynapi-Dev mailing list > >> [EMAIL PROTECTED] > >> http://www.mail-archive.com/[email protected]/ > > > > _______________________________________________ > > Dynapi-Dev mailing list > > [EMAIL PROTECTED] > > http://www.mail-archive.com/[email protected]/ > > > > > _______________________________________________ > Dynapi-Dev mailing list > [EMAIL PROTECTED] > http://www.mail-archive.com/[email protected]/ _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[email protected]/
