On 2012-03-26 16:50:56 -0600 Fred Kiefer <[email protected]> wrote:

The patch is slightly incorrect. You forgot to replace shouldEditTableColumn: with willDisplayCell: in he header file.

In the long run we also need to remember to replace int with NSInteger, but this change is still missing for this class.


Thanks Fred. Here the new patch (to apply to the original source code).

<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 17:24:41.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;
+ - (void) tableView: (NSTableView*)aTableView willDisplayCell: (id)aCell forTableColumn: (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