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.
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".)
Related
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.
Closed 9 years ago.
Is there a way I could initialize some constant in a method like -(void) viewDidLoad for my screen variables (retina, not retina etc) ?
Thx
In C and Objective-C, constants cannot be assigned at runtime because they are constant. If you are asking how to assign to an instance variable, or make that variable accessible to other classes, please update your question.
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.
Closed 10 years ago.
Can any one tell me why Objective-C is called a "run-time language"
Technically, it's not a runtime language-- it is, however, a runtime oriented language.
Objective-C is a runtime oriented language, which means that when it's possible it defers
decisions about what will actually be executed from compile & link time to when it's
actually executing on the runtime.
From here.
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.
Closed 10 years ago.
Here's more explanation.
- (NSArray *)shipsAtPoint:(CGPoint)bomblocation withDamage:(BOOL)damaged;
How to send that?
You'll want to read The Objective-C Programming Language, which you'll find in the Xcode docs.
[objectIWantToSendTheMessageTo shipsAtPont:somePoint withDamage:YES];
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.
Closed 11 years ago.
This app is using iOS 5's built-in dictionary with UISearchBar.
I want to include this feature for my iOS app.
But, I Can't find document in developer.apple.
If you tell me about it and example code, Please.
Sadly there isn't an api for the built-in dictionary. The only thing you can use in that direction is the UITextChecker class. It seems to me, that the app you are talking about uses it too.
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.
Closed 12 years ago.
The community reviewed whether to reopen this question 7 months ago and left it closed:
Original close reason(s) were not resolved
I want to call functions inline in Objective-C. How can I do this? I'm on iOS.
Since Objective-C is based on C, you can:
inline void myf() {int a; a=1;}
Objective-C does not support "inline" methods a la C++.