* GormCore/GormDocument.m: Touch document when aligning views in

-alignSelectedObjects:.
	* Palettes/4Data/DataPalette.m: -depositViewResourceFromPasteboard:..
	touch document when adding formatter.
	* Palettes/4Data/GormDateFormatterAttributesInspector.m
	* Palettes/4Data/GormNumberFormatterAttributesInspector.m:
	-ok: touch document when changing formatter.
	Fixes forbug #28643.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@36288 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2013-03-06 05:07:51 +00:00
parent c998594264
commit d92bf3d1e1
5 changed files with 29 additions and 3 deletions

View file

@ -1,3 +1,14 @@
2013-03-06 00:05-EST Gregory John Casamento <greg.casamento@gmail.com>
* GormCore/GormDocument.m: Touch document when aligning views in
-alignSelectedObjects:.
* Palettes/4Data/DataPalette.m: -depositViewResourceFromPasteboard:..
touch document when adding formatter.
* Palettes/4Data/GormDateFormatterAttributesInspector.m
* Palettes/4Data/GormNumberFormatterAttributesInspector.m:
-ok: touch document when changing formatter.
Fixes forbug #28643.
2013-03-05 20:23-EST Gregory John Casamento <greg.casamento@gmail.com>
* GormCore/GormInternalViewEditor.m: touch document when font is

View file

@ -3250,8 +3250,12 @@ static void _real_close(GormDocument *self,
int tag = [sender tag];
NSEnumerator *en = [selection objectEnumerator];
id v = nil;
id prev = nil;
// Mark the document modified.
[self touch];
// Iterate over all in the selection and align them...
while((v = [en nextObject]) != nil)
{
if([v isKindOfClass: [NSView class]])

View file

@ -375,8 +375,13 @@ int defaultDateFormatIndex = 3;
if([array count] > 0)
{
id formatter = [array objectAtIndex: 0];
// Add the formatter if the object accepts one...
if([obj respondsToSelector: @selector(setFormatter:)])
{
// Touch the document...
[[(id<IB>)NSApp activeDocument] touch];
[obj setFormatter: formatter];
RETAIN(formatter);
if ([formatter isMemberOfClass: [NSNumberFormatter class]])

View file

@ -58,7 +58,10 @@ extern NSArray *predefinedDateFormats;
BOOL allowslanguage = NO;
NSString *dateFmt = nil;
NSDateFormatter *fmtr;
// Set the document as modifed...
[[(id<IB>)NSApp activeDocument] touch];
if (sender == detachButton)
{
[[object cell] setFormatter: nil];

View file

@ -80,7 +80,10 @@ extern NSArray *predefinedNumberFormats;
NSString *minValue, *maxValue;
NSCell *cell = [object cell];
NSNumberFormatter *fmtr = [cell formatter];
// Mark as changed...
[[(id<IB>)NSApp activeDocument] touch];
if (sender == detachButton)
{
[cell setFormatter: nil];