Hi all,

I am writing an API client for a REST service, parts of the REST API
returns fixed String values. E.g. status of an order.

I want to represents these fixed responses as constants. I have
represented fixed numeric values using enums and used a typedef to
represent the data type.

Are Strings defined using #define good enough as String constants?

Or Should I be doing this another way?

Thanks for your time.
_______________________________________________

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