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":

before

now comment out include of header editing

comment

now here's - autocomplete still works

after

when make new protocol, of course not imported implementation file (because new , not class, there no associated implementation file created).

new protocol

so autocomplete of imports (and classes) doesn't work... until import implementation

import protocol

and autocomplete works

yay


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -