gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gorm files to Nib


From: Germán Arias
Subject: Re: Gorm files to Nib
Date: Tue, 09 Dec 2014 01:41:00 -0600

OK, I will open a bug report. Thanks.

Germán.

El dom, 07-12-2014 a las 14:17 +0100, Fred Kiefer escribió:
> I think I finally understand what this report is all about. You have a
> gorm file, load it into Gorm and save it as a NIB file. Then you try to
> load the just created NIB file into Gorm and you get the error message
> you reported.
> "Failed to load file.  Exception: Unable to find class 'InfoTable'"
> 
> Sorry for taking so long to understand, but I always thought this was
> about using the created NIB file in your application. It would help if
> you stated the steps to reproduce the issue explicitly.
> 
> Now with this, hopefully correct understanding, I am able to reproduce
> the problem and it is obvious what is causing it. The code in
> GormNibWrapperLoader.m replaces most of the template classes with Gorm
> specific classes:
> 
>             [u setClass: [GormObjectProxy class]
>                forClassName: @"NSCustomObject"];
>             [u setClass: [GormCustomView class]
>                forClassName: @"NSCustomView"];
>             [u setClass: [GormWindowTemplate class]
>                forClassName: @"NSWindowTemplate"];
>             [u setClass: [GormNSWindow class]
>                forClassName: @"NSWindow"];
>       
> But this does not touch NSViewTemplate and replacing that class wouldn't
> be that easy as it is not prepared for that.
> This problem is not solvable in gui, as it requires the classes.nib file
> to be parsed, which only is present in Gorm.
> 
> The best you can do is to open a bug report for Gorm stating all of the
> above.
> 
> Fred
> 
> 
> 
> Am 07.12.2014 um 07:48 schrieb Germán Arias:
> > MiTable is the previous name of class InfoTable. But since the option
> > "Remove" don't work in Gorm, the class MiTable is still present in the
> > document. But the table view currently use the class InfoTable.
> > 
> > Germán
> > 
> > El dom, 07-12-2014 a las 01:52 +0100, Fred Kiefer escribió:
> >> In this NIB file 'InfoTable' is the value of an NSClassName attribute of
> >> an NSTableView object. This attribute gets used only for NSViewTemplate,
> >> NSCustomView and similar classes.
> >>
> >> It seems like Gorm converts all objects of subclasses of NSView taht
> >> have a custom class name specified into NSViewTemplate objects in the
> >> method -templateForObject:withClassName:withSuperClassName:withDocument:
> >> of GSNibTemplateFactory  in the file GormWrapperBuilder.m. This is
> >> correct behaviour.Now when I convert a somewhat older FisicaLab Gorm
> >> file into a NIB I end up with a custom class name of MITabla.
> >>
> >> Could you please check your initial Gorm file to see, which custom class
> >> name you are using for the table view?
> >>
> >> Hope this helps,
> >> Fred
> >>
> >>
> >>
> >> Am 05.12.2014 um 01:35 schrieb Germán Arias:
> >>> Attached.
> >>>
> >>> Germán
> >>>
> >>> El vie, 05-12-2014 a las 00:16 +0100, Fred Kiefer escribió:
> >>>> Could you please provide one such Nib file?
> >>>>
> >>>> Fred
> >>>>
> >>>> On the road
> >>>>
> >>>> Am 04.12.2014 um 23:56 schrieb Germán Arias <address@hidden>:
> >>>>
> >>>>> Currently I can convert gorm files to nib. But I have problems to open
> >>>>> some of these. I get the error:
> >>>>>
> >>>>> Failed to load file.  Exception: Unable to find class 'InfoTable'
> >>>>>
> >>>>> Germán
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]