What's the difference between Objective-C and Cocoa?

后端 未结 4 1693
日久生厌
日久生厌 2021-01-31 02:21

I\'m just learning Objective-C/Cocoa programming for the Mac. All of the tutorials, books, blogs, podcasts, etc. I\'ve been using really cover the two together. Is there an ea

4条回答
  •  余生分开走
    2021-01-31 03:15

    Look in /usr/include/objc/ — in there is pure Objective-C. Everything else is Cocoa. You might notice you almost never directly use anything in there.

    However, in practice it makes little difference. Cocoa is the de facto Objective-C standard library. The only platform where Objective-C is used without Cocoa is Portable Object Compiler, and I'm guessing maybe three people still use that.

提交回复
热议问题