So, I was wondering if interrupting the fast enumeration process would pose any memory issues? Basically, I am wondering if the following code follows proper conventions. Where, as soon as a newsItem that has not beed read is found, the method returns YES.
Code:
- (BOOL)hasUnreadNews {
for ( NewsItem *newsItem in newsItems) {
if ( ![newsItem hasRead] )
return YES;
}
return NO;
}