mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-21 02:41:04 +00:00
* GSWDatabase/WODisplayGroup.m
respect GNUstep coding standard (curly brackets placement, indentation) fix _deleteObject: (undo selectors) fix _insertObjectWithObjectAndIndex: (NSAssert) fix insertObject:atIndex: (undo selectors) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@37918 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
37ad587ea1
commit
3c024e08cd
2 changed files with 109 additions and 105 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-05-29 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
* GSWDatabase/WODisplayGroup.m
|
||||
respect GNUstep coding standard (curly brackets placement, indentation)
|
||||
fix _deleteObject: (undo selectors)
|
||||
fix _insertObjectWithObjectAndIndex: (NSAssert)
|
||||
fix insertObject:atIndex: (undo selectors)
|
||||
2014-05-22 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
* GSWeb/GSWAssociation.h
|
||||
replace logTakeValue: by _logPullValue:inComponent:
|
||||
|
|
|
@ -284,11 +284,12 @@ static BOOL globalDefaultForValidatesChangesImmediately = NO;
|
|||
{
|
||||
BOOL result=NO;
|
||||
|
||||
|
||||
if(_delegateRespondsTo.shouldDeleteObject
|
||||
&& ![_delegate displayGroup:self
|
||||
shouldDeleteObject:object])
|
||||
{
|
||||
result=NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
BOOL deletionOK=NO;
|
||||
|
@ -312,7 +313,7 @@ static BOOL globalDefaultForValidatesChangesImmediately = NO;
|
|||
if (undoManager)
|
||||
{
|
||||
[undoManager registerUndoWithTarget:self
|
||||
selector:@selector(_selectObjects:)
|
||||
selector:@selector(selectObjectsIdenticalTo:)
|
||||
arg:[self selectedObjects]];
|
||||
|
||||
[undoManager registerUndoWithTarget:self
|
||||
|
@ -385,8 +386,7 @@ static BOOL globalDefaultForValidatesChangesImmediately = NO;
|
|||
NSNumber* indexObject=nil;
|
||||
int index=0;
|
||||
|
||||
|
||||
NSAssert1([objectAndIndex count]==0,
|
||||
NSAssert1([objectAndIndex count]==2,
|
||||
@"Bad Array : %@",objectAndIndex);
|
||||
|
||||
object = [objectAndIndex objectAtIndex:0];
|
||||
|
@ -397,7 +397,6 @@ static BOOL globalDefaultForValidatesChangesImmediately = NO;
|
|||
|
||||
[self insertObject:object
|
||||
atIndex:index];
|
||||
|
||||
}
|
||||
|
||||
/** Returns 1st index of selection if any, -1 otherwise **/
|
||||
|
@ -1279,7 +1278,6 @@ shouldRedisplayForEditingContextChangeNotification:notification];
|
|||
- (void)insertObject:(id)anObject
|
||||
atIndex:(unsigned)index
|
||||
{
|
||||
|
||||
if ([self endEditing])
|
||||
{
|
||||
if (index>[_displayedObjects count])
|
||||
|
@ -1319,7 +1317,7 @@ shouldRedisplayForEditingContextChangeNotification:notification];
|
|||
if (undoManager)
|
||||
{
|
||||
[undoManager registerUndoWithTarget:self
|
||||
selector:@selector(_selectObjects:)
|
||||
selector:@selector(selectObjectsIdenticalTo:)
|
||||
arg:[self selectedObjects]];
|
||||
[undoManager registerUndoWithTarget:self
|
||||
selector:@selector(_deleteObject:)
|
||||
|
|
Loading…
Reference in a new issue