mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
Gorm: tweaks to use ObjectiveC2 runtime API
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@31359 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3dddb006f1
commit
ff74ede114
3 changed files with 14 additions and 13 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-09-15 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* GormCore/GormClassManager.m:
|
||||
* GormCore/GormObjectInspector.m: Tweaks to use ObjectiveC2 runtime
|
||||
API functions. Now Gorm works on libobjc2.
|
||||
|
||||
2010-08-04 13:20-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* English.lproj/Gorm.gorm: Add "Recent Documents" to menu.
|
||||
|
|
|
@ -690,7 +690,7 @@
|
|||
}
|
||||
|
||||
actions = [self allActionsForClassNamed: className];
|
||||
while (actions == nil && (theClass = class_get_super_class(theClass)) != nil
|
||||
while (actions == nil && (theClass = class_getSuperclass(theClass)) != nil
|
||||
&& theClass != [NSObject class])
|
||||
{
|
||||
className = NSStringFromClass(theClass);
|
||||
|
@ -813,7 +813,7 @@
|
|||
}
|
||||
|
||||
outlets = [self allOutletsForClassNamed: className];
|
||||
while (outlets == nil && (theClass = class_get_super_class(theClass)) != nil
|
||||
while (outlets == nil && (theClass = class_getSuperclass(theClass)) != nil
|
||||
&& theClass != [NSObject class])
|
||||
{
|
||||
className = NSStringFromClass(theClass);
|
||||
|
@ -885,7 +885,7 @@
|
|||
|
||||
if (theClass != nil)
|
||||
{
|
||||
theClass = class_get_super_class(theClass);
|
||||
theClass = class_getSuperclass(theClass);
|
||||
if (theClass != nil && theClass != [NSObject class])
|
||||
{
|
||||
NSString *name;
|
||||
|
|
|
@ -223,17 +223,13 @@ selectCellWithString: (NSString*)title
|
|||
|
||||
while (c != nil && c != [NSObject class])
|
||||
{
|
||||
struct objc_method_list *mlist = c->methods;
|
||||
|
||||
while (mlist != 0)
|
||||
{
|
||||
struct objc_method *methods = &mlist->method_list[0];
|
||||
int count = mlist->method_count;
|
||||
unsigned int count;
|
||||
Method *methods = class_copyMethodList(c, &count);
|
||||
int i;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
SEL sSel = methods[i].method_name;
|
||||
SEL sSel = method_getName(methods[i]);
|
||||
NSString *set = NSStringFromSelector(sSel);
|
||||
|
||||
/*
|
||||
|
@ -246,7 +242,7 @@ selectCellWithString: (NSString*)title
|
|||
&& [sets containsObject: set] == NO)
|
||||
{
|
||||
char tmp[[set cStringLength]+1];
|
||||
const char *tInfo = methods[i].method_types;
|
||||
const char *tInfo = method_getTypeEncoding(methods[i]);
|
||||
NSString *type = nil;
|
||||
NSString *get;
|
||||
SEL gSel;
|
||||
|
@ -323,8 +319,7 @@ selectCellWithString: (NSString*)title
|
|||
}
|
||||
}
|
||||
}
|
||||
mlist = mlist->method_next;
|
||||
}
|
||||
free(methods);
|
||||
c = [c superclass];
|
||||
}
|
||||
[sets sortUsingSelector: @selector(compare:)];
|
||||
|
|
Loading…
Reference in a new issue