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. 將鏈接(url)鏈接到Google應用程序腳本中的日曆事件
- 4. 將我的應用程序鏈接到其他應用程序
- 5. 如何將我的應用程序鏈接到Windows中的任何文本?
- 6. 將silverlight類鏈接到web應用程序
- 7. 如何將科爾多瓦應用程序鏈接到App Store?
- 8. 如何將Google日曆鏈接到應用程序?
- 9. 如何將系統日期鏈接到應用程序?
- 10. 如何將預安裝的應用程序鏈接到Android Market?
- 11. 如何將鏈接拖到Windows下的PyGTK應用程序中?
- 12. 如何將我的應用程序鏈接到iphone日曆
- 13. 如何將應用程序鏈接到Web數據庫?
- 14. 如何將PDCurses鏈接到Windows上的C++應用程序?
- 15. 如何將tcamalloc鏈接到主程序
- 16. 將應用程序鏈接到QT的靜態版本
- 17. 如何將Scrapy腳本打包到獨立應用程序中?
- 18. Google網站應用程序腳本用超鏈接創建HTML
- 19. Android - 如何將我的免費應用程序鏈接到Pro版本
- 20. 如何將2個libc版本鏈接到同一個應用程序中?
- 21. F腳本類別
- 22. 將腳本複製到Google文檔的應用程序腳本
- 23. 在Facebook應用程序如何鏈接與應用程序鏈接關聯
- 24. 應用程序腳本超鏈接下載PDF
- 25. 鏈接C#類庫與應用程序
- 26. RECENTLY_PLAYED鏈接類型Spotify應用程序
- 27. 如何創建應用程序鏈接
- 28. 如何獲取iPhone應用程序的應用程序鏈接
- 29. F腳本可以用來反思iOS應用程序嗎?
- 30. Facebook應用程序商店鏈接舊應用程序版本