Search code examples
objective-cnsarraykvc

Cleanest way to associate a BOOL property to an entire NSArray


I have several NSArrays which hold collections of UIView objects associated with each other (the NSArrays are soundView0, soundView1, soundView2 and soundView3). I want to be able to associate a BOOL property to the entire array that will enable/diable the UIViews in the array.

What is the cleanest/most proper way of acommplishing this?


Solution

  • You can write your own subclass of NSArray then you can attach a BOOL property to that subclass