On 2012-03-26 11:47:01 -0600 Eduardo Osorio Armenta <[email protected]> wrote:

Hi German,

I'm playing with 0.2.1, but when trying to enter data in the grid the
fields are not able to receive data,
any tip for the configuration or something like that?

i'm running wmaker 0.5.3 (i guess the last one) compiled for ubuntu 10.04
and gnustep lastest release compiled

Regards


The changes in latest gnustep release break many apps. I forgot that FisicaLab is one of these. So, copy the attached patch to the fisicalab source directory, and apply it:

patch < fisicalab.patch

recompile and install fisicalab again. This should solve the problem. Regards.

<fisicalab.patch>
diff -p FisicaLab-0.2.1/MIInformacion.h FisicaLab-0.2.2/MIInformacion.h
*** FisicaLab-0.2.1/MIInformacion.h	2011-04-10 19:11:49.000000000 -0600
--- FisicaLab-0.2.2/MIInformacion.h	2012-03-26 15:34:25.000000000 -0600
***************
*** 42,45 ****
--- 42,46 ----
  - (id) tableView: (NSTableView*)aTableView objectValueForTableColumn: (NSTableColumn*)aTableColumn row: (int)rowIndex;
  - (void) tableView: (NSTableView*)aTableView setObjectValue: (id)anObject forTableColumn: (NSTableColumn*)aTableColumn row: (int)rowIndex;
  - (BOOL) tableView: (NSTableView*)aTableView shouldEditTableColumn: (NSTableColumn*)aTableColumn row: (int)rowIndex;
+ - (BOOL) tableView: (NSTableView*)aTableView shouldEditTableColumn: (NSTableColumn*)aTableColumn row: (int)rowIndex;
  @end
diff -p FisicaLab-0.2.1/MIInformacion.m FisicaLab-0.2.2/MIInformacion.m
*** FisicaLab-0.2.1/MIInformacion.m	2011-05-16 17:30:17.000000000 -0600
--- FisicaLab-0.2.2/MIInformacion.m	2012-03-26 15:35:02.000000000 -0600
***************
*** 876,881 ****
--- 876,889 ----
    return YES;
  }
  
+ - (void) tableView: (NSTableView*)aTableView 
+    willDisplayCell: (id)aCell 
+     forTableColumn: (NSTableColumn*)aTableColumn 
+ 	       row: (int)rowIndex
+ {
+   [aCell setEditable: YES];
+ }
+ 
  - (void) dealloc
  {
    RELEASE(listaObjetos) ;
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to