Code Completion & Nested Obj-C Messages: Wrong Scope
Code Completion & Nested Obj-C Messages: Wrong Scope
- Subject: Code Completion & Nested Obj-C Messages: Wrong Scope
- From: Sean Murphy <email@hidden>
- Date: Sun, 11 Jun 2006 01:23:50 -0400
Xcode's code completion is giving me trouble when using nested
objective-c messages. The scope being used to determine valid
completions is incorrect after the first nested message. Here's an
example:
[[NSBundle mainBundle] *InvokeCodeSenseHere*
- The scope label on the bottom left of the completion list indicates
that it is providing NSArray * methods as valid choices.
To get the proper completions for a NSBundle instance, I would have
to avoid nesting:
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *path = [mainBundle *InvokeCodeSenseHere*
I have found out this is a problem unique to my particular Xcode
Project. I can try the above mentioned routine and it works fine in
any other project, and just selects the scope as "id" and returns all
methods.
I tried rebuilding my code sense index, but it was no help..
This may be hard to troubleshoot, since it is unique to
my .xcodeproj, but has anyone had this happen, or know of a solution?
Thanks for helping!
Sean
_______________________________________________
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