Re: Code completion of member functions / attributes?
Re: Code completion of member functions / attributes?
- Subject: Re: Code completion of member functions / attributes?
- From: Greg Pfeil <email@hidden>
- Date: Tue, 25 May 2004 16:05:13 -0700
On 25 May 2004, at 13:21, David Olbersen wrote:
On May 25, 2004, at 10:16 AM, Jonathan del Strother wrote:
I'm programming in C++, and have noticed that auto-complete doesn't
appear to work for the '.' and '->' operator.
I've had this happen in C with typedef's / struct's. I am a C newbie
so I played around with the typedef for a while, and eventually it
worked as expected, though I couldn't tell you why.
Well, it looks like anonymous structs are just not indexed for
completion. The second version is an anonymous struct that happens to
have a typedef (QUEUE) pointing to it. The first one is a named struct
(queue). The typedef is just a common trick to be able to not use the
struct keyword when referencing the type.
Example that works:
-----------------------
typedef struct queue {...} QUEUE;
Example that doesn't work:
---------------------------
typedef struct {...} QUEUE;
Thanks for the tip. I just made all my structs non-anonymous and I get
completion on the typedef name now.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.