Hi all,
I have the following code:


typedef enum _DCDBTypes
{
        DCOItemType = 0,
        DCOCategoryType = 1,
        DCORegionType = 2
}DCDBTypes;

It gives me this error message.

error: expected specifier-qualifier-list before 'typedef'

If I try to use it like this

- (void)setItemType:(DCDBTypes) newType;

I get this error message

error: expected ')' before 'DCDBTypes'

I have stared at this piece of code for so long, I know it is something stupid I have assumed or done, please glance over it and point me in the right direction if possible.


Regards
Damien




"We act as though comfort and luxury were the chief requirements of life, when all that we need to make us happy is something to be enthusiastic about."

-- Albert Einstein




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to