开发者

What is message in objective-c? [closed]

开发者 https://www.devze.com 2023-02-05 09:58 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_Go百科 Closed 12 years ago.

What is message in objective-c?


Messages in Objective-C are akin to method calls in C++.

In Objective-C, you don't call a method, you send a message.


If you're at that level of understanding/bemusement, then I'd recommend a read of Apple's excellent "Introduction to The Objective-C Programming Language", as you really need to understand some of the basics before you get any further.

In essence, a message is effectively a method call in Objective-C. (Instead of passing arguments to a method, you "send a message".)

0

精彩评论

暂无评论...
验证码 换一张
取 消