• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Enum advice please (resend not sure if it was delivered ?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enum advice please (resend not sure if it was delivered ?)


  • Subject: Re: Enum advice please (resend not sure if it was delivered ?)
  • From: Damien Cooke <email@hidden>
  • Date: Wed, 7 Jan 2009 09:37:31 +1030

Jeremy,
Thanks, as it turns out if I put it above the @interface statement in the header file it works like a treat as you would I suspect as it should not be part of the class that I was building.


Regards
Damien

On 06/01/2009, at 8:43 PM, Jeremy Pereira wrote:


I pasted your code into a simple C program and it compiled no problem. Is it possible that the error is in the previous declaration to the typedef? Bear in mind it might be a problem in a header file.


On 5 Jan 2009, at 10:49, Damien Cooke wrote:


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 (email@hidden)

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:
This email sent to email@hidden


I Remenber When Synthesizers were Analogue Programs were somthing you watched on T.V and a hard drive was from Sydney to Adelaide!





_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Enum advice please (resend not sure if it was delivered ?) (From: Damien Cooke <email@hidden>)
 >Re: Enum advice please (resend not sure if it was delivered ?) (From: Jeremy Pereira <email@hidden>)

  • Prev by Date: Convert GWorldPtr into a NSImage
  • Next by Date: Re: QTMovieLayer and QCCompositionLayer Don't Start
  • Previous by thread: Re: Enum advice please (resend not sure if it was delivered ?)
  • Next by thread: Re: alloc init thread safe?
  • Index(es):
    • Date
    • Thread