Re: Using the same typedef in multiple files
Re: Using the same typedef in multiple files
- Subject: Re: Using the same typedef in multiple files
- From: Joanna Carter <email@hidden>
- Date: Sun, 13 Mar 2011 10:57:49 +0000
> I have what I suppose is a very basic question about the use of a typedef'd enumerated data type. I want to use such a definition in multiple implementation files in my project, and I'm wondering what would be the best place to put the definition, so it is accessible from all these different files?
Simply place it in a separate header file, in the project, and #import that file into whichever implementation files you need to use it.
Joanna
--
Joanna Carter
Carter Consulting
_______________________________________________
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