Re: Arcs and Bridges

2011-10-17 Thread David Duncan
On Oct 15, 2011, at 11:42 PM, Quincey Morris wrote: > Use '(__bridge_transfer NSString *)'. You're transferring ownership via 'axb' > to ownership via 'myString', if that makes any sense. > > ARC uses horribly ambiguous terminology here: This is one of the reasons we added the CFBridgingRetain

Re: Arcs and Bridges

2011-10-15 Thread Quincey Morris
On Oct 15, 2011, at 23:16 , Gerriet M. Denkmann wrote: > Formerly I had: > > CFStringEncoding encoding = ... > CFStringRef axa = CFStringGetNameOfEncoding ( encoding ); > NSString *encodingName = (NSString *)axa; > NSDictionary *d = [ [ NSDictionary alloc ] initWithObjectsAndKeys: >

Arcs and Bridges

2011-10-15 Thread Gerriet M. Denkmann
I am converting a project to Arc. Formerly I had: CFStringEncoding encoding = ... CFStringRef axa = CFStringGetNameOfEncoding ( encoding ); NSString *encodingName = (NSString *)axa; NSDictionary *d = [ [ NSDictionary alloc ] initWithObjectsAndKeys: encodingName, kEncodingN