[OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD

Helge Hess gnustep-port@opengroupware.org
Mon, 28 May 2007 14:32:00 +0200


On May 28, 2007, at 13:15, Sebastian Reitenbach wrote:
> I first commented out a lot of [pool release]; in sope and ogo, to  
> get it
> working, so it is not only in LSDBFetchRelationCommand.

Well, that might not be the best strategy (or none at all) ...

> 2007-05-28 13:03:38.423 ogo-webui-1.1[29608] dict:  
> {NSTargetObjectUserInfoKey
> = Misc; NSUnknownUserInfoKey = misc; }

Ok, so its trying to set key 'misc' to 'Misc', but on what object.  
You need to log 'self' and '[self class]'.

> 2007-05-28 13:05:54.885 ogo-webui-1.1[29608] File NSData.m: 167. In
> readContentsOfFile Open (/var/ogo/GNUstep/config/ 
> MailRestrictions.plist)
> attempt failed - No such file or directory

Not sure why GNUstep logs that, I would say its a (minor) bug. If  
NSData can't read a file it will return nil, so the calling code  
knows. (maybe errors other than 'No such file' should be logged)

> //  exp = [NSException exceptionWithName: NSInvalidArgumentException
> //                              reason: @"Unable to set nil value  
> for key"
> //                            userInfo: dict];
> //  [exp raise];

Well, maybe its due to the way the exception is raised.

>> This is a difference between lF and GNUstep/Cocoa, we do not raise
>> exceptions but just return nil for unknown keys.
> so in Cocoa it would raise an exception here too? or what happens  
> with these
> key value pairs there? I've no access to a mac machine to take a look.

Since OGo works mostly fine on MacOS, I would say no :-)

Greets,
   Helge
-- 
Helge Hess
http://www.helgehess.eu/