Accessing private variable in Category results in linker error
问题 EDIT: I'm not going to do this, I now realize how dangerous this can be. But, the question stays for purely academic purposes. I'm trying to implement a category on NSCollectionView that will let me access the private variable _displayedItems. I need to be able to access it in my subclass. So, I've created the following category: @interface NSCollectionView (displayedItems) - (NSMutableArray *)displayedItems; @end @implementation NSCollectionView (displayedItems) - (NSMutableArray *