.....
[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 |
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 |
|---|
1. In Terminal
defaults write com.apple.finder AppleShowAllFiles TRUEkillall Finder-> You can see the svn folder
2. Delete .svn folder
defaults write com.apple.finder AppleShowAllFiles FALSEkillall 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 |

Prev

Rss Feed