Here is what I am looking for:
I would like to divide the parts of the functionality into some modules or components in order to limit the visibility of other classes, so that each class has access to all other classes, which eventually lead to spaghetti code.
In Java and Eclipse, for example, I will use packages and put each package in a separate project with a well-defined dependency structure.
Things I reviewed:
#import
, , , ?
Edit:
Mac ( > 2M SLOC 90 xcodeproj), :
, Frameworks, Bundles dylib, . , , , . , iOS, . , , . , "" . , , .
- , . , C/++ , . ", , " ( ). . , .
xcodeproj. , "". 90- . . (Xcode 4 , , - Xcode 4, , , .)
. , Framework. . include .
include
. include . , . , , , , . .
xcconfig, . . , , :
common="../../common" foo="$(common)/foo" HEADER_SEARCH_PATHS = $(inherited) $(foo)/include
. common/foo/include/foo/foo.h. , . : #import <foo/foo.h>. . . .
common/foo/include/foo/foo.h
#import <foo/foo.h>
Xcode 4, Xcode 3 , ".a" , , , . Xcode 4, , .
( -L -L ). , . , LD_FLAGS. . . libssl.a , -L , -lssl. , libssl.a , libssl.so. -L, -L, . ( .) xcconfig:
-L
LD_FLAGS
libssl.a
-lssl
libssl.so
LD_FLAGS = "$(openssl)/lib/libssl.a"
:
Framework. , , , , .
Framework. , . , .
XCode4 ( ). ( , Eclipse), . , Frameworks.
iOS, , , , , .
, ( ), Model-View-Control (MVC), ( , git).
, :
"" , ( , "" ) Objective-C 1, NSObject "model", NSObject. Objective-C 1.0 , , , "" - Objective-C 2.0.
XIB XIB , ( Xode 3 Xcode 4). Apple, Cocoa Touch API , /, Apple API.
, / (, XIB) .
, ( ) , "", .
, , .
.
"" - , , , . , , , , / XCode .
huuge , . , , , framework/extra . , , , .
. ( , - , ) - ? , , , ( - ). (), / , , .
. ... , , /.