no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionLast revision | |||
— | dev:objective-c [2023/03/25 17:46] – Henrik Yllemo | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <button type=" | ||
+ | <nav type=" | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[:kb:ios]] | ||
+ | * [[: | ||
+ | </ | ||
+ | ====== Objective-C ====== | ||
+ | <data programminglanguage> | ||
+ | Full Name: Objective-C | ||
+ | Short Name: Objective-C | ||
+ | Description: | ||
+ | Company: Apple | ||
+ | Web: No | ||
+ | Mobile: Yes | ||
+ | Enterprise: Yes | ||
+ | Embedded : No | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | <panel title=' | ||
+ | Objective-C is a programming language that was developed in the 1980s and is commonly used for developing software for macOS and iOS. It is a strict superset of C, meaning that any valid C code is also valid Objective-C code. | ||
+ | </ | ||
+ | Objective-C includes features such as dynamic binding, message passing, and protocols, which allow for flexible and dynamic object-oriented programming. It also includes support for categories, which allow for adding functionality to existing classes, and blocks, which are similar to anonymous functions. | ||
+ | </ | ||
+ | Objective-C and Swift are two different programming languages that are used for developing software for macOS and iOS. Objective-C is an older language that has been used for many years, while Swift is a newer language that was introduced by Apple in 2014. Swift is designed to be easier to learn and use than Objective-C, | ||
+ | </ | ||
+ | Objective-C is commonly used in iOS development to create native apps for iPhones, iPads, and other iOS devices. It is used to write the code that controls the user interface, interacts with the device' | ||
+ | </ | ||
+ | Some popular Objective-C frameworks and libraries for iOS development include UIKit, Core Data, and Cocoa Touch. | ||
+ | </ | ||
+ | Yes, Objective-C code can be used in Swift projects using bridging headers. This allows for interoperability between Objective-C and Swift code, which is useful for developers who are migrating from Objective-C to Swift or who are working on projects that include both languages. | ||
+ | </ | ||
+ | Objective-C is still relevant today, particularly for developers who are maintaining legacy code or who are working on macOS and iOS projects that were developed using Objective-C. However, Swift is increasingly becoming the preferred language for new iOS and macOS projects, as it is easier to learn and use than Objective-C and includes many modern language features. | ||
+ | </ | ||
+ | |||
+ | |||
+ | {{wp> | ||
+ | <callout type="" | ||
+ | * https:// | ||
+ | |||
+ | Objective-C builds on the foundations of ANSI C. Compared to other object-oriented languages based on C, Objective-C is very dynamic. Dynamism enables the construction of sophisticated development tools. Since Objective-C incorporates C, one gets all the benefits of C when working within Objective-C. | ||
+ | </ | ||
+ | |||
+ | <callout type="" | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | <WRAP column right>< | ||
+ | </ | ||
+ | |||
+ | |||
+ | < | ||
+ | ===== Hello World ===== | ||
+ | |||
+ | <sxh > | ||
+ | #import < | ||
+ | |||
+ | int main (int argc, const char *argv[]) | ||
+ | { | ||
+ | printf (" | ||
+ | return 0; | ||
+ | } | ||
+ | </ | ||
+ | <WRAP column right>< | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | See also: [[dev: | ||
+ | |||
+ | {{tag> |