[OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD
Sebastian Reitenbach
gnustep-port@opengroupware.org
Mon, 28 May 2007 17:01:46 +0200
Hi,
>
> > 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 16:34:45.845 ogo-webui-1.1[5335] dict: {NSTargetObjectUserInfoKey =
Verschiedenes; NSUnknownUserInfoKey = misc; }, [self class]: LSWLabelHandler,
[self] <LSWLabelHandler: 0x84cfa2a8>
2007-05-28 16:34:45.845 ogo-webui-1.1[5335] dict: {NSTargetObjectUserInfoKey =
Verschiedenes; NSUnknownUserInfoKey = misc; }, [self class]: LSWLabelHandler,
[self] <LSWLabelHandler: 0x84cfa2a8>
2007-05-28 16:34:45.847 ogo-webui-1.1[5335] dict: {NSTargetObjectUserInfoKey =
20; NSUnknownUserInfoKey = address_blocksize; }, [self class]: LSUserDefaults,
[self] <LSUserDefaults: 0x7e0f5f48>
2007-05-28 16:37:50.782 ogo-webui-1.1[5335] dict: {NSTargetObjectUserInfoKey =
Allgemein; NSUnknownUserInfoKey = GeneralDefaults; }, [self class]:
LSWLabelHandler, [self] <LSWLabelHandler: 0x82e9fa68>
2007-05-28 16:37:50.776 ogo-webui-1.1[5335] dict: {NSTargetObjectUserInfoKey =
Clipboard; NSUnknownUserInfoKey = Clipboard; }, [self class]: LSWLabelHandler,
[self] <LSWLabelHandler: 0x86c6d9a8>
2007-05-28 16:42:40.007 ogo-webui-1.1[6513] dict: {NSTargetObjectUserInfoKey =
80; NSUnknownUserInfoKey = mail_editor_text_columns; }, [self class]:
LSUserDefaults, [self] <LSUserDefaults: 0x813e3d48>
2007-05-28 16:42:40.007 ogo-webui-1.1[6513] dict: {NSTargetObjectUserInfoKey =
20; NSUnknownUserInfoKey = mail_editor_text_rows; }, [self class]:
LSUserDefaults, [self] <LSUserDefaults: 0x813e3d48>
2007-05-28 16:42:40.033 ogo-webui-1.1[6513] dict: {NSTargetObjectUserInfoKey =
80; NSUnknownUserInfoKey = mail_editor_text_columns; }, [self class]:
LSUserDefaults, [self] <LSUserDefaults: 0x813e3d48>
2007-05-28 16:42:40.033 ogo-webui-1.1[6513] dict: {NSTargetObjectUserInfoKey =
20; NSUnknownUserInfoKey = mail_editor_text_rows; }, [self class]:
LSUserDefaults, [self] <LSUserDefaults: 0x813e3d48>
I changed the UI language to German. Don't know what's so different with the
misc label than other labels. But it seems it might throw an exception with
some user Defaults.
> > 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.
don't know that much about the exception handling, so what does this make it
so special?
> >> 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 :-)
so if I understand correct, in gnustep-base sth. weird is going on there that
somehow prevents ogo from running. Don't understand why they make an exception
there.
On the other side, other labels and user Defaults seem to work without
problem.
I just recognized, some Defaults look a bit "strange" in my eyes, especially
the BOOL and Integer values:
cat /var/ogo/documents/10100.defaults
...
SkyMaxFavoritesCount = <*I5>;
SkyMaxNavLabelLength = <*I32>;
is_cc_collapsed = <*BY>;
is_to_collapsed = <*BY>;
...
SkyDockablePagesOrdering = (
News,
Persons,
Enterprises,
Projects,
Scheduler2,
Jobs,
Imap
);
MailListSortHeader/INBOX = sendDate;
kind regards
Sebastian