On 5/1/07, David Chisnall <[EMAIL PROTECTED]> wrote: > On 1 May 2007, at 08:17, Yen-Ju Chen wrote: > > > I can pin down the problem of DTD is from loading Apple's nib > > with GNUstep. And since loading nib is not perfect, > > some links are broken. > > I was ignoring the DTD issue, since it didn't seem to affect the > operation. > > > So I do have to convert all nib into gorm semi-manually. > > Although I can just file bug report to GNUstep, > > I think it is unrealistic to ask them to be perfect about reading > > nib. > > It does work half of the way, which save me a lot time already. > > I probably will still file some bug reports with some of our nib > > files in Jabber and Sketch so nib support can be improved. > > But I don't expect them to fix everything. > > So converting nib to gorm is still needed. > > I did this with one nib that didn't work in GNUstep. I think this > was due to a label that had multi-line text, which seems not to be > supported on GNUstep. At some point, the GNUstep UI is likely to > diverge from the OS X one, so I don't have a problem with forking it > now.
Well, I found the errors you mentioned about thread is caused by converting gorm straight from nib. So I have to remake all the gorms file from scratch. The MainMenu.nib has a lot of windows to remake. So it will take a while to finish it. Considering the UI will change in the future, it would be better to put all the windows in MainMenu.nib into individual nib file so that it is easier to follow the changes. The MainMenu.nib may contain only the menus. Another thing I notice is that Jabber like to resize itself. Unfortunately, the GNUstep UI is different from Cocoa UI. While it is optimized for Cocoa, it actually breaks on GNUstep. So I really think for practical purpose, it may be easier to let users do the resizing. Otherwise, I have to do a lot of platform-specific things like: #ifdef GNUSTEP #endif I think it is what GNUMail does mostly. > > > One thing I notice is that Jabber uses NSWindowController to load > > nib. > > Although it looks reasonable at the first sight, > > I was told years ago that NSWindowController is supposed to work > > with NSDocumentController and NSDocument. > > Is there some documentation regarding this? I was under the > impression that NSWindowController subclasses were the 'correct' way > of creating windows from nibs. That seems to be what the Apple > documentation says... There is no document and it is a few years ago. So there is no need to change anything for now. Just let you know what I learned before. Yen-Ju > > > If you use NSWindowController alone just to load nib of window, > > it will not work in some ways because of the lack of NSDocument. > > Can you give an example of something that is likely to break? I > haven't had any problems so far... > > > I haven't been able to have a reasonable working status to > > take a screenshot of StepChat on GNUstep, probably tomorrow. > > Everything seems to work fine, but I need to fix the nib issue. > > Great news, thanks. > > David > > > _______________________________________________ > Etoile-dev mailing list > [email protected] > https://mail.gna.org/listinfo/etoile-dev > _______________________________________________ Etoile-dev mailing list [email protected] https://mail.gna.org/listinfo/etoile-dev
