Equivalent of @class for a type?


hey,

have 2 classes, classa , classb. in classb header have:

code:
  typedef enum_atype  {     atypea,     atypeb,     atypec  } atype;  
in classa header have method prototype:

code:
  -( atype )somemethod;  
this set works if include classb header file in classa header file - don't want (since it's against convention). want classb header included in classa .m file. need @class equivalent type?

cheers
 

there not equivalent @class enum. stick typedef in new .h file , include in both of class .h files.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Upgrade Eligibility?

need help with itunes 7.7

How to change Apple IDs on iPhones