mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-06-02 18:21:07 +00:00
* EOControl/EOFault.m
(+[EOFault respondsToSelector:]): Use GSObjCRuntime functions and correct casts. (-[EOFault respondsToSelector:]): Correct casts. * EOControl/EOKeyComparisonQualifier.m * EOControl/EOKeyValueCoding.m * EOControl/EOKeyValueQualifier.m * EOControl/EOQualifier.m * EOControl/EOSortOrdering.m (-[NSObject compare:]): Add declaration to prepare for removal of declaration from -base. (-[EOKeyComparisonQualifier evaluateWithObject:]): Adapt * vraiables and casts to use correct prototype. (-[EOKeyValueQualifier evaluateWithObject:]): Ditto (-[NSArray computeMaxForKey:]): Ditto. (-[NSArray computeMinForKey:]): Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@17651 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
37d9f90bb1
commit
3bf11844dc
7 changed files with 91 additions and 10 deletions
|
@ -168,6 +168,20 @@ initialize(void)
|
|||
}
|
||||
@end
|
||||
|
||||
|
||||
/*
|
||||
This declaration is needed by the compiler to state that
|
||||
eventhough we know not all objects respond to -compare:,
|
||||
we want the compiler to generate code for the given
|
||||
prototype when calling -compare: in the following methods.
|
||||
We do not put this declaration in a header file to avoid
|
||||
the compiler seeing conflicting prototypes in user code.
|
||||
*/
|
||||
@interface NSObject (Comparison)
|
||||
- (NSComparisonResult)compare: (id)other;
|
||||
@end
|
||||
|
||||
|
||||
@implementation NSArray (EOKeyValueCoding)
|
||||
|
||||
/**
|
||||
|
@ -413,7 +427,7 @@ initialize(void)
|
|||
|
||||
if (currentVal == nil || currentVal == null) continue;
|
||||
|
||||
if ([resultVal compare: currentVal] == NSOrderedAscending)
|
||||
if ([(NSObject *)resultVal compare: currentVal] == NSOrderedAscending)
|
||||
{
|
||||
result = current;
|
||||
resultVal = currentVal;
|
||||
|
@ -455,7 +469,7 @@ initialize(void)
|
|||
|
||||
if (currentVal == nil || currentVal == null) continue;
|
||||
|
||||
if ([resultVal compare: currentVal] == NSOrderedDescending)
|
||||
if ([(NSObject *)resultVal compare: currentVal] == NSOrderedDescending)
|
||||
{
|
||||
result = current;
|
||||
resultVal = currentVal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue