[Top][All Lists]

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

Re: Number formatters in tables on GORM

From: Graham Lee
Subject: Re: Number formatters in tables on GORM
Date: Thu, 3 Aug 2017 05:13:46 -0600

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?


From: Graham Lee <address@hidden>
To: <address@hidden>
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,


Discuss-gnustep mailing list

reply via email to

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