|
From: | Riccardo Mottola |
Subject: | Re: ProjectCenter / Gorm do not work together |
Date: | Wed, 13 Feb 2013 23:42:34 +0100 |
User-agent: | Opera Mail/12.14 (Win32) |
Hi,
It is, in frame 9, when initializing FSNodeRep, it tries to create the tumbnail directory, but fails,and then terminates the application. So far, so good. Question is, why it is failing. Do you can add a NSLog output like this: NSLog(@"thumbnaildir: %@", thumbnailDir);To FSNodeRep.m right after the RETAIN (thumbnailDir); line around line 130.Then recompile and check what's wrong with the dir?At the locations something already exists, or wrong permissions prevent creating the directory?
Yes, that sounds like a good idea. The directory should be inside "GNUstep/Library" in your homedoes GNUstep/Library exist in your system? And if, is it writeable by your user? (not that accidentally it is root owned or such).
In any case the code in GWorkspace was brittle: NSSearchPathForDirectoriesInDomains returns a value, but it is not guaranteeed to exist and creating a directory won't create its parent.
I added a check, a creation and a new error log. Could you update GWorkspace from SVn and try it and see if it works and if it fails, what error you do get this time? Thank you.
Riccardo
[Prev in Thread] | Current Thread | [Next in Thread] |