[Gnustep-cvs] GNUstep Testfarm Results
Test results for GNUstep as of Thu Jul 21 06:34:09 EDT 2005 If a particular system failed compilation, the logs for that system will be placed at ftp://ftp.gnustep.org/pub/testfarm If you would like to add your machine to this list, set up a cron job (make sure you set up your PATH and other environment variables correctly) to run the Startup/scripts/test-gnustep script (see the script comments for more info). Success Compile i386-unknown-netbsdelf2.0.2 Thu Jul 21 03:58:23 CEST 2005 Success Compile powerpc-apple-darwin7.9.0 Thu Jul 21 03:25:29 MDT 2005 Success Compile sparc-sun-solaris2.7 Thu Jul 21 02:08:18 EDT 2005
[Gnustep-cvs] gnustep/dev-apps/Gorm ChangeLog
CVSROOT:/cvsroot/gnustep Module name:gnustep Branch: Changes by: Fabien VALLON [EMAIL PROTECTED] 05/07/21 11:42:57 Modified files: dev-apps/Gorm : ChangeLog Log message: Fix bug #13872 CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/dev-apps/Gorm/ChangeLog.diff?tr1=1.721tr2=1.722r1=textr2=text
[Gnustep-cvs] gnustep/dev-apps/Gorm/Palettes/0Menus GormMenuI...
CVSROOT:/cvsroot/gnustep Module name:gnustep Branch: Changes by: Fabien VALLON [EMAIL PROTECTED] 05/07/21 11:41:05 Modified files: dev-apps/Gorm/Palettes/0Menus: GormMenuInspectors.m Log message: Fixed bug #13872 CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/dev-apps/Gorm/Palettes/0Menus/GormMenuInspectors.m.diff?tr1=1.17tr2=1.18r1=textr2=text
[Gnustep-cvs] gnustep/core/gui ChangeLog Source/GSNibTemplates.m
CVSROOT:/cvsroot/gnustep Module name:gnustep Branch: Changes by: Gregory John Casamento [EMAIL PROTECTED] 05/07/21 12:29:24 Modified files: core/gui : ChangeLog core/gui/Source: GSNibTemplates.m Log message: Prevent accidental deallocation of contentView in custom window subclass. CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/gui/ChangeLog.diff?tr1=1.2552tr2=1.2553r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/gui/Source/GSNibTemplates.m.diff?tr1=1.34tr2=1.35r1=textr2=text
[Gnustep-cvs] gnustep/core/make ANNOUNCE ChangeLog FAQ GNUste...
CVSROOT:/cvsroot/gnustep Module name:gnustep Branch: Changes by: Adam Fedor [EMAIL PROTECTED] 05/07/21 13:44:32 Modified files: core/make : ANNOUNCE ChangeLog FAQ GNUstep-HOWTO NEWS README Version core/make/Documentation: news.texi readme.texi Log message: Version 1.11.0 CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/make/ANNOUNCE.diff?tr1=1.20tr2=1.21r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/make/ChangeLog.diff?tr1=1.1158tr2=1.1159r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/make/FAQ.diff?tr1=1.22tr2=1.23r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/make/GNUstep-HOWTO.diff?tr1=1.33tr2=1.34r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/make/NEWS.diff?tr1=1.26tr2=1.27r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/make/README.diff?tr1=1.19tr2=1.20r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/make/Version.diff?tr1=1.30tr2=1.31r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/make/Documentation/news.texi.diff?tr1=1.32tr2=1.33r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/make/Documentation/readme.texi.diff?tr1=1.10tr2=1.11r1=textr2=text
[Gnustep-cvs] gnustep/core/base ANNOUNCE ChangeLog INSTALL NE...
CVSROOT:/cvsroot/gnustep Module name:gnustep Branch: Changes by: Adam Fedor [EMAIL PROTECTED] 05/07/21 13:58:00 Modified files: core/base : ANNOUNCE ChangeLog INSTALL NEWS README Version core/base/Documentation: news.texi Log message: Version 1.11.0 CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/base/ANNOUNCE.diff?tr1=1.32tr2=1.33r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/base/ChangeLog.diff?tr1=1.2568tr2=1.2569r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/base/INSTALL.diff?tr1=1.16tr2=1.17r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/base/NEWS.diff?tr1=1.33tr2=1.34r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/base/README.diff?tr1=1.13tr2=1.14r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/base/Version.diff?tr1=1.62tr2=1.63r1=textr2=text http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/base/Documentation/news.texi.diff?tr1=1.68tr2=1.69r1=textr2=text
Re: STS Template Engine
Am 21.07.2005 um 16:03 schrieb Sunrise Ltd: we've just released the STS TemplateEngine, a library for expanding templates using tagged placeholders and it features its own macro lanuguage for conditional template expansion. This is was I thought first: Since when are templates part of the Obj-C language and why would one want to add yet another layer of configurability (= code obscurity)? However, when reading your description I've learned you're not talking about templates on code ( like C++), but about _string_ templates here. So, it's something comparable to regex(3), NSScanner, et al. Wanted to point that out. Markus P.S.: Adding the Engine as a category with 4 methods only sounds in fact very good! - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev
Re: STS Template Engine
Markus Hitter wrote: Since when are templates part of the Obj-C language and why would one want to add yet another layer of configurability (= code obscurity)? However, when reading your description I've learned you're not talking about templates on code ( like C++), Agreed, that kind of templating is a real kludge. C++ templating, or Generics as it is more accurately called in some other languages is a workaround to overcome some of the shortcomings of statically typed languages. Objective-C certainly doesn't need such a kludge because it's dynamically typed. but about _string_ templates here. So, it's something comparable to regex(3), NSScanner, et al. Wanted to point that out. Indeed, thanks. the methods provided are ... stringByExpandingTemplate:usingDictionary:errorsReturned: stringByExpandingTemplate:withStartTag:andEndTag:usingDictionary:errorsReturned: stringByExpandingTemplateAtPath:usingDictionary:encoding:errorsReturned: stringByExpandingTemplateAtPath:withStartTag:andEndTag:usingDictionary:encoding:errorsReturned: In a way, NSScanner does the opposite of what the STS Template Engine does. It creates a new data set from data found in a string. The template engine inserts data from an existing data set into a string. thanks for the thumbs up. regards Sunrise -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev
isEqual: and hash in NSDate
I have a problem with the implementations of isEqual: and hash in NSDate. Let's say we have two dates: NSDate *a, *b; // This is actually a common case if you are doing floating point math to generate dates and get small rounding errors. a = [NSDate dateWithTimeIntervalSinceReferenceDate:10.001]; b= [NSDate dateWithTimeIntervalSinceReferenceDate:9.998]; printf("a = %d, b=%d, equal=%d\n", [a hash] , [b hash], [a isEqual:b]); // this code will print a = 10, b = 9, equal = 1 This breaks the NSDictionary rule that hash of two objects must equal if they are -isEqual:. I propose that we change the implementations to this: - (unsigned) hash{ return (unsigned)([self timeIntervalSinceReferenceDate]+0.5);} - (BOOL) isEqual: (id)other{ if (other == nil) return NO; if ([other isKindOfClass: abstractClass] (int)(otherTime(self)+0.5)== (int)(otherTime(other)+0.5) ) return YES; return NO;} After my change the program's output changes to: a = 10, b = 10, equal = 1 I realize that the dates 100.5 and 100.49 are now not -isEqual:, but you have to draw the line somewhere, and putting it at .000 as the old code was worse. Comments? I will send a patch, so that no retyping is necessary. ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev
base/make CVS
FYI, I've tagged the release for base and make, so you can go ahead and commit things to CVS again, if you were waiting. ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev
Re: Core release, Wed
On Jul 21, 2005, at 4:31 PM, Fred Kiefer wrote: Are you making a release of GUI and back as well? In the last few days I did get the basic cairo backend working again on the changed cairo code. If the back release isn't due in the next few days I'll add that code to CVS, if it's going out soon, I'll wait til after that. Greg asked me to hold Gui until he checks some things. I don't know how long that will be. ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev
Re: Core release, Wed
All, --- Adam Fedor [EMAIL PROTECTED] wrote: On Jul 21, 2005, at 4:31 PM, Fred Kiefer wrote: Are you making a release of GUI and back as well? In the last few days I did get the basic cairo backend working again on the changed cairo code. If the back release isn't due in the next few days I'll add that code to CVS, if it's going out soon, I'll wait til after that. Greg asked me to hold Gui until he checks some things. I don't know how long that will be. I'm done. I needed to check a change I made to GSWindowTemplate for custom window classes. My tests indicate it's working properly. Please go ahead with the release. Sorry for the delay, but I was at work a little late today. :) Thanks, GJC Gregory John Casamento -- CEO/President Open Logic Corp. (A MD Corp.) ## Maintainer of Gorm (IB Equiv.) for GNUstep. ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev
Re: isEqual: and hash in NSDate
Am 21.07.2005 um 21:49 schrieb Jeremy Bettis: I have a problem with the implementations of isEqual: and hash in NSDate. Let's say we have two dates: NSDate *a, *b; // This is actually a common case if you are doing floating point math to generate dates and get small rounding errors. a = [NSDate dateWithTimeIntervalSinceReferenceDate:10.001]; b = [NSDate dateWithTimeIntervalSinceReferenceDate:9.998]; printf(a = %d, b=%d, equal=%d\n, [a hash] , [b hash], [a isEqual:b]); // this code will print a = 10, b = 9, equal = 1 This breaks the NSDictionary rule that hash of two objects must equal if they are -isEqual:. While you are true with this rule and obviously true with -isEqual: being broken, you shouldn't compare dates with -isEqual: but with - isEqualToDate: and/or handle rounding errors more consciously: if (fabs([a timeIntervalSinceReferenceDate] - [b timeIntervalSinceReferenceDate]) someAmountOfSecondsYouConsiderNeglible) { // they are equal } else { // they differ } - (BOOL) isEqual: (id)other { [...] if ([other isKindOfClass: abstractClass] (int)(otherTime(self)+0.5) == (int)(otherTime(other)+0.5) ) Any reason why you don't want to compare [self hash] to [other hash]? my $0.02 Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev