• 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: Using the same typedef in multiple files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Using the same typedef in multiple files (From: Luc Van Bogaert <email@hidden>)

  • Prev by Date: Using the same typedef in multiple files
  • Next by Date: Problem with NSPredicate in core data fetch request
  • Previous by thread: Using the same typedef in multiple files
  • Next by thread: Problem with NSPredicate in core data fetch request
  • Index(es):
    • Date
    • Thread