Closed segiddins closed 9 years ago
NSString *input = @"http://google.com/"; NSURL *output; NSError *error; expect([transformer transformValue:input toValue:&output error:&error]).to.beTruthy();
Yields the compiler error Sending 'NSURL *const __strong *' to parameter of type '__autoreleasing id *' changes retain/release properties of pointer. Likely related to http://developer.apple.com/library/mac/releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011226-CH1-SW4.
Sending 'NSURL *const __strong *' to parameter of type '__autoreleasing id *' changes retain/release properties of pointer
You have probably figured this out already but adding __block_ to the output and error pointers helps.
__block_
@segiddins think this is closable?
Yields the compiler error
Sending 'NSURL *const __strong *' to parameter of type '__autoreleasing id *' changes retain/release properties of pointer
. Likely related to http://developer.apple.com/library/mac/releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011226-CH1-SW4.