Preference (Command + ,) 로 가서
Text Editing > Indentation > tab width 에서
Prefer indent using > Tabs
키워드 : 탭, 스페이스
Showing posts with label XCode. Show all posts
Showing posts with label XCode. Show all posts
Tuesday, April 24, 2012
Apple Mach-O Linker (Id) Error "[function_name]", referenced from:
질문 : XCode에서 컴파일 시 Apple Mach-O Linker (Id) Error "[function_name]", referenced from: 의 원인?
답 : 필요한 것을 #import 안했을 때 종종 발생하는 에러
답 : 필요한 것을 #import 안했을 때 종종 발생하는 에러
Monday, April 23, 2012
cocos2d 사용하는 프로젝트에서 클래스 간편히 만드는 법
- Command + N (또는 왼쪽 Navigator에 오른클릭 > New File..)
- Choose a template for your new file... 에서 CCNode class 선택 (디폴트 그대로)
- Subclass of CCNode (디폴트 그대로)
- Save As.. 에서 원하는 클래스 이름 넣음
- @interface MyClass : CCNode {
를
@interface MyClass : NSObject {
로 고침
cocos2d 에서 ccTouchBegan 으로 들어가지 않을 때 해결법
질문 : ccTouchesBegan 은 되는데 ccTouchBegan 으로는 들어가지 않을 때 해결법?
답 : 메인 layer의 멤버 함수로 다음을 넣어준다.
-(void) registerWithTouchDispatcher
{
[[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES];
}
ccTouchesBegan 도 안된다면 메인 layer의 -(id) init 함수 내에 self.isTouchEnabled = YES; 를 넣어주는 것을 잊었을 것임
답 : 메인 layer의 멤버 함수로 다음을 넣어준다.
-(void) registerWithTouchDispatcher
{
[[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES];
}
ccTouchesBegan 도 안된다면 메인 layer의 -(id) init 함수 내에 self.isTouchEnabled = YES; 를 넣어주는 것을 잊었을 것임
Sunday, April 22, 2012
XCode에서 현재 소스코드를 Project Navigator에서 표시하는 법
질문 : 현재 에디터에 열려 있는 소스 파일을 왼쪽의 프로젝트 내비게이터에 나타나게 하는 법?
답 : 핫키 Shift + Command + J 또는
메뉴 > Navigate > Reveal in Project Navigator 또는
Right click > Reveal in Project Navigator
키워드 : editor, editing, 에디터, hotkey, shortcut
답 : 핫키 Shift + Command + J 또는
메뉴 > Navigate > Reveal in Project Navigator 또는
Right click > Reveal in Project Navigator
키워드 : editor, editing, 에디터, hotkey, shortcut
Labels:
XCode
Saturday, April 14, 2012
XCode4 hotkeys
Edit
Expand/Collapse : Option + Command + Arrow Left/Right
Block Comment : Command + /
Build
Run : Command + R
Clean : Shift + Command + K
Debug
Step Over : F6
Step Into : F7
Step Out : F8
Stop : Command + .
Pause : Control + Command + Y
Continue Command Execution : Control + Command + Y
Add Breakpoint : Command + \
Window
Show Debug Area (아래쪽 창 열기/닫기) : Command + Shift + Y
Activate Console : Command + Shift + C (View > Debug Area > Activate Console)
Shift + Command + J : Reveal in Project Navigator
Command + 0 : Show/Hide Project Navigator
Command + 1~7 : Project Navigator 의 tab 변경
Command + T : New Tab
레퍼런스 : “Continue program execution” keyboard shortcut – Xcode 4
Expand/Collapse : Option + Command + Arrow Left/Right
Block Comment : Command + /
Build
Run : Command + R
Clean : Shift + Command + K
Debug
Step Over : F6
Step Into : F7
Step Out : F8
Stop : Command + .
Pause : Control + Command + Y
Continue Command Execution : Control + Command + Y
Add Breakpoint : Command + \
Window
Show Debug Area (아래쪽 창 열기/닫기) : Command + Shift + Y
Activate Console : Command + Shift + C (View > Debug Area > Activate Console)
Shift + Command + J : Reveal in Project Navigator
Command + 0 : Show/Hide Project Navigator
Command + 1~7 : Project Navigator 의 tab 변경
Command + T : New Tab
레퍼런스 : “Continue program execution” keyboard shortcut – Xcode 4
Labels:
XCode
XCode4 에서 도큐먼트 윈도우를 닫는 hotkey?
질문 : XCode4 에서 도큐먼트 윈도우를 닫는 핫키?
답 : Command + Control + w
키워드 : xcode 4 close window document
답 : Command + Control + w
키워드 : xcode 4 close window document
Labels:
XCode
Subscribe to:
Posts (Atom)