Xcode is confusing two source files in the middle of a line. Anybody seen this?
Xcode is confusing two source files in the middle of a line. Anybody seen this?
- Subject: Xcode is confusing two source files in the middle of a line. Anybody seen this?
- From: G S <email@hidden>
- Date: Mon, 11 Jul 2011 00:21:03 -0700
Hi all.
I couldn't figure out why the compiler was complaining about an
invalid conversion of parameter types. The line looks like this:
GetItemsOperation* getItemsOp = [[GetItemsOperation alloc]
initWithContainer:_itemList];
Jumping to the definition of GetItemsOperation goes to the right
source, but jumping to initWithContainer goes to the wrong one. While
both objects are derived from NSOperation, the source files are
formatted correctly (@end is present) and have different class names.
The init functions have different parameters, although the first one
is of the same class. The incorrect source file defines the parameter
as a pointer, while the correct one takes a reference. The compiler
complained because it was incorrectly trying to convert to a pointer.
A clean did not resolve it, and restarting Xcode 4 did not resolve it.
What the hell? Anybody see this before?
Thanks.
Gavin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden