You can just use extern rather than FOUNDATION_EXPORT (which I believe is defined one way or another).
Using a common prefix is a good idea, given the lack of namespaces in Objective-C, and this doubles for a class named Event , which is a very common name.
So something like this looks good to me:
#import "KPEvent.h" KPEvent * myEvent = [[KPEvent alloc] init]; myEvent.status = KP_STATUS_NEW;
or better yet:
myEvent.status = KP_EVENT_STATUS_NEW;
if the statuses apply only to the class of events.
Which you do not explain why you cannot use enum , which is more elegant:
typedef enum { KP_EVENT_STATUS_NEW, KP_EVENT_STATUS_APPROVED, KP_EVENT_STATUS_DELETED } KpEventStatus;
and you can forget about this extern nonsense.
source share