estoy convirtiendo mi cliente toma a ARC:error "Pasando dirección del objeto que no es local a __autoreleasing parámetro de escritura no simultánea"
- (id)initWithHostname:(NSString *)hostname AndPort:(NSInteger)port
{
if((self = [super init]))
{
oBuffer = [[NSMutableData alloc] init];
iBuffer = [[NSMutableData alloc] init];
iStream = [[NSInputStream alloc] init];
oStream = [[NSOutputStream alloc] init];
[NSStream getStreamsToHost:[NSHost hostWithName:hostname] port:port inputStream:&iStream outputStream:&oStream];
...
}
return self;
}
El error que tengo es:
file://localhost/...foo.m: error: Automatic Reference Counting Issue: Passing address of non-local object to __autoreleasing parameter for write-back
en esta línea en "& iStream"/"& ostream"
[NSStream getStreamsToHost:[NSHost hostWithName:hostname] port:port inputStream:&iStream outputStream:&oStream];
Cualquier ayuda?
dada la nueva ARC es, que podría hacer mejor pedir esto en los foros de desarrolladores . – jtbandes
Seguro, por supuesto;) – kilianc