Re: choose framework version at runtime

2015-08-04 Thread Chris Hanson
As long as you don’t actually link the framework, you can load it at runtime via -[NSBundle loadAndReturnError:], and look up classes in it via NSClassFromString after it’s loaded. You could also implement a pair of bundles, one which your app would load on 10.6 and one which your app would

__attribute((noescape)) doesn't prevent retain-cycle errors

2015-08-04 Thread Jens Alfke
Is __attribute((noescape)) — the Objective-C equivalent of Swift’s @noescape attribute — fully implemented yet (as of Xcode 7)? I’m trying to use it to avoid that pesky “capturing 'self' strongly in this block is likely to lead to a retain cycle” error. I’ve got a method declared like so, with