I am learning objective-C and Cocoa. In an Apple tutorial, I look over there a note that says:
IBOutlet is a zero-value macro that the C preprocessor deletes at compile time.
IBOutlet
I am wondering - what is the macro defining zero?
#define IBOutlet
Whenever an IBOutlet is used in the program text, it will not be replaced with anything at all.
FYI, , , IBOutlet, , Interface Builder . (, , ), , IBOutlet, Outlet Interface Builder .
- , ( ) . - - , :
#define IN #define OUT #define INOUT int myFunction(IN char *name, INOUT char *address, OUT char *phone);
, name , address , , phone .
name
address
phone
Also - if you do not know how something is defined - the command double-click on it, and Xcode will open the definition in the original source file.
Oh, and while I am. Parallel double-click (attempt) will open the documentation for double-click.