Currently I'm saving bookmarks in NSMutableIndexSet
- (BOOL)saveBookmark
{
if (!bookmarkIndex) {
bookmarkIndex = [NSMutableIndexSet indexSet];
}
if (currentIndex) {
[bookmarkIndex addIndex:currentIndex];
return [bookmarkIndex containsIndex:currentIndex];
}
return NO;
}
But when I exit the app and come back to check on bookmarks, the bookmarks are not showing then.
So thinking of storing bookmarks in NSUserDefaults
.
Is it possible to store NSMutableIndexSet
in NSUserDefaults
or only NSMutableArray
can be saved in NSUserDefaults
.
Is there is any example of storing NSMutableIndexSet
in NSUserDefaults
?
Appreciate help.
Thanks