Problem with NSMutableArray

Posted by zp26 on Stack Overflow See other posts from Stack Overflow or by zp26
Published on 2010-05-18T16:14:03Z Indexed on 2010/05/18 16:20 UTC
Read the original article Hit count: 262

Hi, I have a problem with NSMutableArray. In my program i have a lot of variabile "CFSocketRef". i want to save this in NSMutableArray but i can't. Can you help me? Thank and sorry for my english XP

My code:

CFSocketRef     socketAccept;
NSMutableArray  *arrayIP = [[NSMutableArray alloc] init];



self.socketAccept = CFSocketCreateWithNative(NULL,
                                  fd, 
                                  kCFSocketDataCallBack,
                                  AcceptDataCallback, 
                                  &context);

[arrayIP    addObject:(id)self.socketAccept];

© Stack Overflow or respective owner

Related posts about nsmutablearray

Related posts about iphone