iOS 관련 단어

iOS Words

오늘부터 iOS를 처음 시작하게 됐고, 따라서 그에 관한 용어들을 정리하기 위해 글을 작성한다.


갑자기 iOS…?

Java spring공부만 하다보니 정신이 나갈 것 같아서 취미생활삼아 iOS를 공부하게 됐다.


NS..

apple 공식 문서를 볼 때 NS…뭐시기 하는게 많이 나오길래 이게 뭔가 싶어서 찾아봤다. - 답변

The original code for the Cocoa frameworks came from the NeXTSTEP libraries Foundation and AppKit (those names are still used by Apple’s Cocoa frameworks), and the NextStep engineers chose to prefix their symbols with NS.

Because Objective-C is an extension of C and thus doesn’t have namespaces like in C++, symbols must be prefixed with a unique prefix so that they don’t collide. This is particularly important for symbols defined in a framework.

stackoverflow에서 위와 같은 답변이 있었는데 Objective-C가 C의 확장판이라 C++과 같은 namespace라는 개념이 없다고 한다. 따라서 코드간의 충돌이 안나게 하기 위해서 프레임워크에서는 unique prefix를 사용해야하고, NeXTSTEP에서 만든 프레임워크 심볼이 NS였던 것이다.


Cocoa framework

위에서 볼 수 있듯이 Cocoa 프레임워크라는 단어도 상당히 많이 본 것 같다. 어떤 목적으로 쓰는 프레임워크인지 궁금해져서 찾게 됐다.

Cocoa is an application environment for both the OS X operating system and iOS, the operating system used on Multi-Touch devices such as iPhone, iPad, and iPod touch. It consists of a suite of object-oriented software libraries, a runtime system, and an integrated development environment. - apple

iOS와 OS X 운영체제 둘 다에 사용되는 application environment라고 한다. 그래서 Safari나 Mail와 같은 것들이 Cocoa application 이라고 한다.


계속 추가될 예정…