I’m assuming you haven’t initialized listOfEvents
.
Make sure you do listOfEvents = [[NSMutableArray alloc] init];
in your class’s init
method. Also make sure you release it in your class’s dealloc
method.
More Related Contents:
- 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
- Getting date from [NSDate date] off by a few hours
- How to print out the method name and line number and conditionally disable NSLog?
- How to do a natural sort on an NSArray?
- Sort NSArray of date strings or objects
- iOS – Build fails with CocoaPods cannot find header files
- Objective-C Introspection/Reflection
- NSString tokenize in Objective-C
- Comparing Strings in Cocoa
- Is there a way to suppress warnings in Xcode?
- How do you set your Cocoa application as the default web browser?
- Sorting two NSArrays together side by side
- Search through NSString using Regular Expression
- Parse Plist (NSString) into NSDictionary
- How do I create an MD5 Hash of a string in Cocoa?
- Are classes objects in Objective-C?
- Core Data Predicate Date Comparison
- How to use NSScanner?
- Launching an Mac App with Objective-C/Cocoa
- What does Apple mean when they say that a NSManagedObjectContext is owned by the thread or queue that created it?
- NSString instance reports its class as NSCFString
- Cocoa/ Objective-C Shell Command Line Execution
- Xcode linker error: file too small for architecture x86_64
- What’s the difference between [NSNull null] and nil?
- viewDidLoad in NSViewController?
- Listen to a value change of my text field