Home > Articles > Programming > Mac and iOS Programming

  • Print
  • + Share This
This chapter is from the book

Q&A

  • Q. How is Objective-C related to the ANSI C programming language?

    A. Objective-C isn’t just similar to C; it is a superset of the C language. This means that any standard ANSI C code is compatible with an Objective-C application.

  • Q. What function do you call to write messages to the system log and console output?

    A. NSLog(). This function will become very familiar to you as you write more and more code.

  • Q. How does Objective-C message passing differ from calling methods in other programming languages?

    A. In Objective-C, the method parameters are actually part of the message name. In addition, message passing in Objective-C is dynamic, meaning you can compile code that sends messages to objects that may or may not respond to those messages at runtime.

  • + Share This
  • 🔖 Save To Your Account