티스토리 툴바



2011/10/16 18:53

CCCallFuncND data 형식











.....
   [
CCCallFuncND actionWithTarget:self selector:@selector(test:data) data:&number];


....


-(void) test :(id)node data:(void*)d

{

   NSLog(@"num =%d" ,  *((int*)d));


}

저작자 표시 비영리 변경 금지

'Development Tip > Cocos2d' 카테고리의 다른 글

CCCallFuncND data 형식  (0) 2011/10/16
How to develop retinadisplay games in cocos2d v0.99.5 beta  (0) 2010/10/22
flip image using CCOrbitCamera - cocos2d  (0) 2010/10/20
Cocos2d install directory  (0) 2010/10/14
iAd attach in Cocos2d  (0) 2010/10/14
Cocos2d templates install  (0) 2010/10/13
Trackback 0 Comment 0
2011/10/14 16:46

NSMutableArray 숫자 입력











NSMutableArray *array = [NSMutableArray array];

add 
[array addObject:[NSNumber numberWithInt:(int)i]]; 

                               numberWithFloat
                               numberWithChar 
 

get 
int i = [[
array objectAtIndex:index] intValue];   
                                                   floatValue

                                                   charValue

 

저작자 표시 비영리 변경 금지

'Development Tip > Objective C' 카테고리의 다른 글

NSMutableArray 숫자 입력  (0) 2011/10/14
Trackback 0 Comment 0
2011/07/12 16:36

Delete XCODE Missing File warning










1. In Terminal 
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
-> You can see the svn folder

2. Delete .svn folder
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder
-> hide .svn folder 
저작자 표시 비영리 변경 금지

'Development Tip' 카테고리의 다른 글

Delete XCODE Missing File warning  (0) 2011/07/12
XCODE SVN .a lib 추가하기  (0) 2011/04/07
libxml 설정  (0) 2011/03/17
iOS object Serialization(객체 직렬화)  (0) 2011/01/21
nslog file, line display  (0) 2010/12/01
Delete XCODE (XCODE 지우기)  (0) 2010/11/23
Trackback 0 Comment 0