⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 root_methods.m

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 M
字号:
/* Contributed by Nicola Pero - Thu Mar  8 16:27:46 CET 2001 */#include <objc/objc.h>/* Test that instance methods of root classes are available as class    methods to other classes as well */@interface RootClass{  Class isa;}- (id) self;@end@implementation RootClass- (id) self{  return self;}@end@interface NormalClass : RootClass@end@implementation NormalClass : RootClass@endint main (void){  Class normal = objc_get_class ("NormalClass");  if (normal == Nil)    {      abort ();    }  if ([NormalClass self] != normal)    {      abort ();    }  return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -