mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-21 19:00:54 +00:00
* GSWExtensions/GSWLongResponsePage.m
* GSWDatabase/WODisplayGroup.m * GSWeb/GSWHTMLStaticElement.m * GSWeb/GSWDynamicURLString.m fix some warnings git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36269 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
83854b342e
commit
2b86cd2dca
5 changed files with 46 additions and 27 deletions
|
@ -1,3 +1,10 @@
|
|||
2013-03-04 David Wetzel <dave@turbocat.de>
|
||||
* GSWExtensions/GSWLongResponsePage.m
|
||||
* GSWDatabase/WODisplayGroup.m
|
||||
* GSWeb/GSWHTMLStaticElement.m
|
||||
* GSWeb/GSWDynamicURLString.m
|
||||
fix some warnings
|
||||
|
||||
2013-03-03 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||
* GSWDatabase/WODisplayGroup.h
|
||||
* GSWDatabase/WODisplayGroup.m
|
||||
|
|
|
@ -360,19 +360,22 @@ static BOOL globalDefaultForValidatesChangesImmediately = NO;
|
|||
return result;
|
||||
}
|
||||
|
||||
-(BOOL)_deleteObjectsAtIndexes:(NSArray*)indexes
|
||||
-(BOOL) _deleteObjectsAtIndexes:(NSArray*)indexes
|
||||
{
|
||||
BOOL result=NO;
|
||||
int indexesCount = 0;
|
||||
BOOL result = NO;
|
||||
|
||||
|
||||
indexesCount = [indexes count];
|
||||
if (indexesCount>0)
|
||||
if ([indexes count] > 0)
|
||||
{
|
||||
NSArray* objects=[_displayedObjects objectsAtIndexes:indexes];
|
||||
result=[self _deleteObjects:objects];
|
||||
NSEnumerator * idxEnumer = [indexes objectEnumerator];
|
||||
NSMutableArray * objects = [NSMutableArray array];
|
||||
NSNumber * idx = nil;
|
||||
|
||||
while ((idx = [idxEnumer nextObject])) {
|
||||
[objects addObject:[_displayedObjects objectAtIndex:[idx intValue]]];
|
||||
}
|
||||
|
||||
result=[self _deleteObjects:objects];
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -1668,8 +1671,18 @@ createObjectFailedForDataSource:_dataSource];
|
|||
|
||||
- (NSArray *)selectedObjects
|
||||
{
|
||||
if (!_selectedObjects)
|
||||
ASSIGN(_selectedObjects,([_displayedObjects objectsAtIndexes:_selection]));
|
||||
if (!_selectedObjects) {
|
||||
NSEnumerator * idxEnumer = [_selection objectEnumerator];
|
||||
NSMutableArray * objects = [NSMutableArray array];
|
||||
NSNumber * idx = nil;
|
||||
|
||||
while ((idx = [idxEnumer nextObject])) {
|
||||
[objects addObject:[_displayedObjects objectAtIndex:[idx intValue]]];
|
||||
}
|
||||
|
||||
// ASSIGN(_selectedObjects,([_displayedObjects objectsAtIndexes:_selection]));
|
||||
ASSIGN(_selectedObjects, objects);
|
||||
}
|
||||
|
||||
return _selectedObjects;
|
||||
}
|
||||
|
@ -2302,13 +2315,13 @@ createObjectFailedForDataSource:_dataSource];
|
|||
}
|
||||
}
|
||||
|
||||
//Deprecated
|
||||
-(void)editingContext:(EOEditingContext*)editingContext
|
||||
presentErrorMessage:(NSString*)message
|
||||
{
|
||||
[self _presentAlertWithTitle:@"Editing context error"
|
||||
message:message];
|
||||
}
|
||||
////Deprecated
|
||||
//-(void)editingContext:(EOEditingContext*)editingContext
|
||||
// presentErrorMessage:(NSString*)message
|
||||
//{
|
||||
// [self _presentAlertWithTitle:@"Editing context error"
|
||||
// message:message];
|
||||
//}
|
||||
|
||||
-(void)_presentAlertWithTitle:(NSString*)title
|
||||
message:(NSString*)message
|
||||
|
|
|
@ -298,7 +298,7 @@ Default implementation stops automatic refresh and returns self.
|
|||
};
|
||||
|
||||
|
||||
-(GSWElement*)invokeActionForRequest:(GSWRequest*)aRequest
|
||||
- (id <GSWActionResults>) invokeActionForRequest:(GSWRequest*)aRequest
|
||||
inContext:(GSWContext*)aContext
|
||||
{
|
||||
//??
|
||||
|
|
|
@ -336,7 +336,7 @@ static SEL appendStringSel = NULL;
|
|||
{
|
||||
if (!_flags.composed)
|
||||
{
|
||||
NSString * tmpUrl = [[NSMutableString new] autorelease];
|
||||
NSMutableString * tmpUrl = [[NSMutableString new] autorelease];
|
||||
|
||||
if (!_flags.beginningComposed)
|
||||
{
|
||||
|
|
|
@ -214,7 +214,6 @@ static Class GSWHTMLBareStringClass = Nil;
|
|||
[tmpElementsMap subdataWithRange:
|
||||
NSMakeRange(elementN,
|
||||
[tmpElementsMap length]-elementN)]];
|
||||
tmpElementsMap=tmpElementsMap;
|
||||
for(rmStringN=0;rmStringN<elementN;rmStringN++)
|
||||
{
|
||||
[rmString appendString:[tmpHtmlBareStrings objectAtIndex:rmStringN]];
|
||||
|
|
Loading…
Reference in a new issue