Top "Automatic-ref-counting" questions

Automatic Reference Counting (ARC) is a compiler feature that provides automatic memory management of Objective-C and Swift objects.

Zeroing Weak References in ARC

If my reading of Mike Ash's "Zeroing Weak References" writeup is correct, weak references are like assign references without ARC. …

objective-c clang automatic-ref-counting
Should I declare variables in interface or using property in objective-c arc?

approach 1: @interface MyController : UIViewController { UILabel *myText; } @property (nonatomic, strong) UILabel *myText; approach 2: @interface MyController : UIViewController @property (nonatomic, strong) UILabel *myText; …

ios objective-c automatic-ref-counting instance-variables
MKAnnotation not showing callout on MKMapView

I've got a MKMapView and I'm adding annotations like this: for (NSDictionary *tmp in response) { NSDictionary *places = [tmp objectForKey:@"place"]; …

objective-c ios mkmapview automatic-ref-counting
Weak object in an NSDictionary?

I would like to store a zeroing weak reference to an object in a NSDictionary. This is for a reference …

ios nsdictionary automatic-ref-counting weak-references
Possible to pass [self anyFunction] in blocks without __weak object (iOS 5 + ARC)

Is it possible to pass [self anyFunction] in blocks without a __weak object from self? As an example this is …

iphone objective-c ios automatic-ref-counting objective-c-blocks
Crash in objc_retain in method performed with performSelector

I have this strange crash relating to ARC auto-inserting objc_retains in my code. I have the following two classes: @…

xcode automatic-ref-counting performselector
Automatic Reference Counting Issue: Assigning retained object to unsafe_unretained variable; object will be released after assignment

I'm getting this warning "Automatic Reference Counting Issue: Assigning retained object to unsafe_unretained variable; object will be released after …

objective-c object automatic-ref-counting alloc
Getting "deallocated while key value observers were still registered with it." errors after conversion to ARC

I am using this class: https://github.com/alexleutgoeb/ALPickerView Since I converted to ARC, I get this error after …

ios cocoa-touch observer-pattern dealloc automatic-ref-counting
@property definitions with ARC: Is strong default now?

Just running the ARC refactoring tool on the new xcode 4.3.1 and noticed that my (nonatomic, retain) properties are being swapped …

ios xcode automatic-ref-counting
Is it ever Ok to have a 'strong' reference for a delegate?

I have a class that retrieves JSON from a URL and returns the data via the protocol/delegate pattern. MRDelegateClass.…

objective-c memory-management delegates automatic-ref-counting objective-c-blocks