I think this is a limitation in how Gorm decides whether or not to drop the 
formatter. Looking at DataPalette.m 
(https://github.com/gnustep/apps-gorm/blob/master/Palettes/4Data/DataPalette.m#L355)
 it checks whether the object at the drag destination responds to 
-setFormatter:, my expectation is that this would be NSTableView, NSScrollView 
or NSTableColumn when you drag over a table. It's the column's -dataCell that 
the formatter needs attaching to...does that need handling specially in 
DataPalette.m?


Thanks,
Graham.




 From:   Graham Lee <[email protected]> 
 To:   <[email protected]> 
 Sent:   01/08/2017 7:54 PM 
 Subject:   Number formatters in tables on GORM 

Hi folks, 
 
I have an NSTableView, and want to attach an NSNumberFormatter to one of  
the columns. What I _think_ I should do is drag the number formatter  
avatar from the Gorm palette to the column, but that has no effect. 
 
Specifically, dragging the formatter onto most of the table's area shows  
the "no entry" cursor. If I drag it over the column headers, the cursor  
changes to the source/target overlapping rectangles, but dropping the  
formatter has no visible effect, and the document is not dirty (i.e. no  
changes were made). 
 
There's a workaround, in that I can do all this in code, but can I avoid  
that by using Gorm? Am I just holding it wrong? 
 
Thanks for your help, 
 
Graham. 
 
 
 
_______________________________________________ 
Discuss-gnustep mailing list 
[email protected] 
https://lists.gnu.org/mailman/listinfo/discuss-gnustep 
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to