• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Code completion of member functions / attributes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.



  • Follow-Ups:
    • Re: Code completion of member functions / attributes?
      • From: David Olbersen <email@hidden>
References: 
 >Code completion of member functions / attributes? (From: Jonathan del Strother <email@hidden>)
 >Re: Code completion of member functions / attributes? (From: David Olbersen <email@hidden>)

  • Prev by Date: Project Naming Convention
  • Next by Date: Re: weak linking questions
  • Previous by thread: Re: Code completion of member functions / attributes?
  • Next by thread: Re: Code completion of member functions / attributes?
  • Index(es):
    • Date
    • Thread