Selection of project
If you choose "Cocoa Application" project, you will have 'Classes', 'Other Sources', 'Resources','Frameworks' and 'Products' folders in the project file.
Important files;
main.m, MainMenu.xib
- Classes
- Resources
- If you double click 'MainMenu.xib', a window appears in which places 7 icons;"File's Owner", "First Responder", "Application", "Main Menu", "Window", "xxxAppDelegate", "Font Manager".
New files
For new file's template, you can choose, under the "Cocoa Class" tab, from
NSObject/NSDocument/NSView/NSWindowController
- Objective-C protocol
- Objective-C test case class
- AppleScript class
NSObejct/NSDocument/NSView
Cocoa Class
If "NSView" chosen, 'xxxview.m' and 'xxxview.h' files will be created.
A class and its methods.
examples
Custome View\subset NSView class->initWithFrame
Fundamental command
- Pressing command-key, click a method name will show the definition of
- Position the cursor right after an incomplete method and then press ESC. It shows the complementary sentences which completes the method.
最終更新:2010年05月26日 20:40