mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(encodeSelector:withName:): Use sel_get_any_uid() to get sel type if
we can't get it the normal way. (newWithCoder:): Use NSAllocateObject. (isProxy): Removed from NSObject category. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@164 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8fb338daf4
commit
805a34014b
1 changed files with 3 additions and 11 deletions
|
@ -511,7 +511,7 @@ exc_return_null(arglist_t f)
|
|||
#else
|
||||
sel_types = sel_get_type(sel);
|
||||
#endif
|
||||
#if 0
|
||||
#if 1 /* xxx Yipes,... careful... */
|
||||
/* xxx Think about something like this. */
|
||||
if (!sel_types)
|
||||
sel_types = sel_get_type(sel_get_any_uid(sel_get_name(sel)));
|
||||
|
@ -1235,12 +1235,12 @@ exc_return_null(arglist_t f)
|
|||
|
||||
- (void) encodeWithCoder: (Coder*)anEncoder
|
||||
{
|
||||
/* Do nothing */
|
||||
return;
|
||||
}
|
||||
|
||||
+ newWithCoder: (Coder*)aDecoder
|
||||
{
|
||||
return class_create_instance(self);
|
||||
return NSAllocateObject(self, 0, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1262,14 +1262,6 @@ exc_return_null(arglist_t f)
|
|||
[anObject encodeWithCoder:aRmc];
|
||||
}
|
||||
|
||||
|
||||
/* @implementation Object (IsProxy) */
|
||||
|
||||
- (BOOL) isProxy
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue