Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85c8ab0

Browse files
committed
update article bug
1 parent c1a6330 commit 85c8ab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/JavaScript/2014-10-03-[译]利用JS构建OSX应用.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ tags : [osx,js,app,mac]
1616

1717
```js
1818

19-
objc.import('Cocoa');
19+
ObjC.import('Cocoa');
2020

2121
```
2222

23-
<a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/ObjC_classic/_index.html" target="_blank">Foundation</a>框架就跟它名字一样,提供一些基础模块给`osx app`,它包含很多类以及接口,比如`NSArray`,`NSURL`,`NSUserNotification`等等,也许你对这些类不熟悉,但是根据字面意思大概就能知道它们的功能,这些这些类比较常用,所以可以直接在app中使用而不需要单独导入它.它是默认就会加载的
23+
<a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/ObjC_classic/_index.html" target="_blank">Foundation</a>框架就跟它名字一样,提供一些基础模块给`osx app`,它包含很多类以及接口,比如`NSArray`,`NSURL`,`NSUserNotification`等等,也许你对这些类不熟悉,但是根据字面意思大概就能知道它们的功能,这些类比较常用,所以可以直接在app中使用而不需要单独导入它.它是默认就会加载的
2424

2525
我可以这么跟你说,只要是用`objective-c`或者`swift`创建的app,用`javascript`都可以做出来.
2626

0 commit comments

Comments
 (0)