array = [NSMutableArray arrayWithArray:[set allObjects]];
This worked with an NSSet, but how do I get it to work with an NSMutableOrderedSet?
array = [NSMutableArray arrayWithArray:[set allObjects]];
This worked with an NSSet, but how do I get it to work with an NSMutableOrderedSet?
Copyright © 2021 Jogjafile Inc.
there is a method on the NSOrderedSet class to get an array
[orderedSet array]. you can then do[array mutableCopy]to get a mutable array.or use
[NSMutableArray arrayWithArray:[set array]];if you prefer.do be aware of this, however:
basically you must copy the array if you don't want this behavior.