The “0x0” part is a memory address. Specifically, “nil”, which means your mutable array doesn’t exist at the time this is being called. Try creating it in your -init method:
categories = [[NSMutableArray alloc] init];
Don’t forget to release it in your -dealloc.
More Related Contents:
- Random Number Generator Objective-C iOS8 [duplicate]
- NSMutableArray addObject not affecting count?
- Cannot add items to an NSMutableArray ivar
- How to sort NSMutableArray using sortedArrayUsingDescriptors?
- NSMutableArray – force the array to hold specific object type only
- Avoiding “NSArray was mutated while being enumerated”
- 2D arrays using NSMutableArray
- Removing duplicates from NSMutableArray
- Sort NSArray of custom objects based on sorting of another NSArray of strings
- Should I subclass the NSMutableArray class
- UIBezierPath Multiple Line Colors
- iOS: store two NSMutableArray in a .plist file
- Differences between strong and weak in Objective-C
- How to tell when UITableView has completed ReloadData?
- Delete a particular local notification
- What does the @ symbol represent in objective-c?
- Is there a difference between YES/NO,TRUE/FALSE and true/false in objective-c?
- Using NSPredicate to filter an NSArray based on NSDictionary keys
- Changing a managed object property doesn’t trigger NSFetchedResultsController to update the table view
- Getting NSDictionary keys sorted by their respective values
- Cocoa Core Data efficient way to count entities
- Implementing -hash / -isEqual: / -isEqualTo…: for Objective-C collections
- How do I download and save a file locally on iOS using objective C? [duplicate]
- How to make subscripts and superscripts using NSAttributedString?
- How can I get a hex string from UIColor or from rgb
- How does a Block capture the variables outside of its enclosing scope?
- Objective C – Custom view and implementing init method?
- NSString – Convert to pure alphabet only (i.e. remove accents+punctuation)
- WaveForm on IOS
- Looping using NSRange