I started using Xcode 4, and I am really annoyed by some “functions”, especially those semantic warnings that don't seem to make much sense, for example:
http://coding-journal.com/wp-content/uploads/2011/08/Screen-Shot-2011-08-07-at-8.50.46-PM.png
On line 640, you can see a semantic problem saying that I am passing an incompatible pointer type to the NSString * parameter, which is simply wrong because the signature is NSTabViewItems' initWithIdentifier: ::
- (id)initWithIdentifier:(id)identifier
I assume that Xcode believes that I am calling initWithIdentifer: on some other object, because when I have the Cmd+Click method, it gives me three options:
http://coding-journal.com/wp-content/uploads/2011/08/Screen-Shot-2011-08-07-at-8.50.24-PM.png
And the first of NSTableColumn has a signature
- (id)initWithIdentifier:(NSString *)identifier;
So my question is: what should I do in this situation? I like my code without warning, but this is not possible when using Xcode 4 :(
source share