What are the key concepts for developing Objective-C / Cocoa?

Experienced Objective-C / Cocoa Devs:

What are the key concepts that I should adopt at an early stage, will it bring me closer to that epiphyseal moment when all this makes sense, and I effectively create solutions using Objective-C / Cocoa? I come from the .NET / Java background, so everything I do is based on this paradigm.

I do not need deep features, but one or two of the things you came across were different, and it took some time to absorb. A good example would be when I switched from QuickBASIC to C 20+ years ago .. It took me a while to understand the concept of a pointer. As a result, I would say that the key concept of moving from QuickBASIC to C is understanding the memory address.

+3
source share
4 answers

MEMORY MANAGEMENT . If you don’t understand the pointers, the difference between the stack and the heap, and how to manage memory exactly, you will spend years trying to pry Objective-C and Cocoa, but you will never “get” it.

(I speak from experience, I [unfortunately] learned to program in basic languages, and then spent 2 years trying to understand what this meant #! @ # ^% Asterisk. Then I took a computer engineering course, learned about memory, and then took Objective-C in a week)

+5
source

I would recommend Cocoa Design Patterns by Eric M. Buck and Donald A. Yaktman. A great book if you want to learn more about Cocoa key concepts, their background and motivation.

My list:

  • Cocoa Objective-C , Undo, Bindings,...
  • Builder .
+3

, . .NET/Java, , , , Cocoa. GC Cocoa, : , , . .

+2
+1

Source: https://habr.com/ru/post/1744388/


All Articles