2
A
回答
0
综观FScript.app,其被报告给被链接到最核心框架的代码,我发现了下面的方法:
- (void)loadSystemFrameworks // Contributed by Cedric Luthi
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSMutableArray *systemFrameworksPaths = [NSMutableArray arrayWithObject:@"/System/Library/Frameworks"];
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"FScriptLoadPrivateSystemFrameworks"])
[systemFrameworksPaths addObject:@"/System/Library/PrivateFrameworks"];
for (NSString *systemFrameworksPath in systemFrameworksPaths)
{
for (NSString *framework in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:systemFrameworksPath error:NULL])
{
NSBundle *frameworkBundle = [NSBundle bundleWithPath:[systemFrameworksPath stringByAppendingPathComponent:framework]];
if ([frameworkBundle preflightAndReturnError:nil])
[frameworkBundle load];
}
}
[pool drain];
}
我采取链接到从定义的类应用程序足以加载包含类的包。
相关问题
- 1. F#脚本到应用程序
- 2. 将F#应用程序连接到FIXImulator
- 3. 如何将我的应用程序链接到Windows中的任何文本?
- 4. 将silverlight类链接到web应用程序
- 5. 如何将科尔多瓦应用程序链接到App Store?
- 6. 如何将Google日历链接到应用程序?
- 7. 如何将系统日期链接到应用程序?
- 8. 如何将链接拖到Windows下的PyGTK应用程序中?
- 9. 如何将PDCurses链接到Windows上的C++应用程序?
- 10. 如何将我的应用程序链接到iphone日历
- 11. 如何将tcamalloc链接到主程序
- 12. 将应用程序链接到QT的静态版本
- 13. 如何将2个libc版本链接到同一个应用程序中?
- 14. Android - 如何将我的免费应用程序链接到Pro版本
- 15. F脚本类别
- 16. 在Facebook应用程序如何链接与应用程序链接关联
- 17. 应用程序脚本超链接下载PDF
- 18. 如何获取iPhone应用程序的应用程序链接
- 19. 将python变量链接到HTML脚本
- 20. 如何链接到应用程序在我的应用程序在Android
- 21. 如何使用python脚本连接node.js应用程序?
- 22. 从iPhone版本链接到应用程序中的iPad应用程序
- 23. 如何选择应用程序应该链接到的VC 2008 DLL的版本?
- 24. 蝙蝠脚本链接到python脚本
- 25. 链接到iphone应用程序
- 26. facebook应用程序链接到问题
- 27. 链接到msi的应用程序
- 28. Android深入链接到应用程序
- 29. 链接到应用程序内的PDF
- 30. 将iPhone控制应用程序链接到主iPad应用程序