これは私のコードです
NSMutableArray * reversedNamesArray; //theres about a thousand variable already stored in here, this is just for documentation
reversedNamesArray = [reversedNamesArray sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
//Incompatible pointer type assigning "NSMutableArray" to "NSArray"
上記のメッセージは私が得たものであり、それが何を意味するかはわかっていますが、千の変数の NSMutableArray を NSArray にコピーするという余分な手順を実行したくありません。警告を修正するために使用できるキャストはありますか?私のコードには影響しませんが、修正が必要です。互換性がない理由を説明できますか? NSMutableArray と NSArray は同じ量のバイトを使用する必要があるため、そもそも互換性がない理由がわかりません。