Like Caleb states, if this is truly a class method like your code insinuates then it wont work. If it is an instance method, like example 1 then it should work fine, and more code will be needed to help answer the question.
Example 1: This is ok
-(void)classMethod
{
[self.data addObject: message];
}
Example 2: This is NOT ok because you can't reference properties from the class method unless you pass them
+(void)classMethodWithMessage:(NSString *)message
{
[self.data addObject: message];
}
Example 3: This is ok because you pass the array that needs updating
+(void)classMethodWithArray:(NSMutableArray *)array message:(NSString *)message
{
[array addObject: message];
}