objective c - Is there a way to force XCode to provide autocompletion of imports and/or classes in header files that are not included by an implementation file? -
i've noticed while editing header files, xcode not auto-suggest header files import or classes imported files unless file editing imported file included in target.
i kind of reasons this, it's super lame. i'm happy take trade off of disappointment @ compile time (oops! wasn't class import) benefit of saving ton of time while writing headers.
by way i'm aware can use forward class , protocol declarations not helpful because need use name i've not committed memory. once know thing forward-declare, will!
is there way xcode more liberal this?
edit: pictures
here's see in header file included implementation file added target when type letters "#i":
now comment out include of header editing
now here's - autocomplete still works
when make new protocol, of course not imported implementation file (because new , not class, there no associated implementation file created).
so autocomplete of imports (and classes) doesn't work... until import implementation
and autocomplete works
Comments
Post a Comment