Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3394594
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:11:20+00:00 2026-05-18T04:11:20+00:00

Xcode 3.25, Mac OS X 10.6, 10.5 compatibility required. I have a Mac Xcode

  • 0

Xcode 3.25, Mac OS X 10.6, 10.5 compatibility required.

I have a Mac Xcode project, which mixes Cocoa and C/C++. Some legacy modules require a C-only header.

I created a C header file: myCTypes.h

I wish to use a CGPoint in that header.

Compiling generates an error: CGPoint is not defined. OK, no problem, so I’ll just:

#include: "<CoreGraphics/CoreGraphics.h>"

Unfortunately, I get this:

error: CoreGraphics/CoreGraphics.h: No such file or directory

Hmm. OK, so I’d best add the framework. But if I right-click on the frameworks group within Xcode, and try to “Add an existing framework”, CoreGraphics does not show up in the list. Grr.

So I try to add it manually, navigating my way to System/Library/Frameworks. Nup, not in there either.

So I look in the 10.5 SDK paths, and once again, there’s a lot of CoreXXX frameworks in there, but no CoreGraphics.framework.

Can someone please tell me what I’m doing wrong here? What do I need to use CGGraphics in that header? Cheers.

EDIT

This was solved by:

#include <Carbon/Carbon.h>

(But if anyone wants to tell me if this is good practice or not, please feel free. Cheers.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:11:20+00:00Added an answer on May 18, 2026 at 4:11 am

    Core Graphics is part of Application Services, so that’s the header you should include:

    #include <ApplicationServices/ApplicationServices.h>
    

    You can include Carbon.h if you want, but its total length after preprocessing is very long, so you should include it only when you absolutely have to (e.g., for Carbon Events hotkey stuff) in order to keep your build times down.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two cocoa-touch apps in one Xcode project. Xcode gives me iPhone/iPad related
I have an Xcode project with the following group structure: ProjectName/ Classes/ class1.h class1.m
Working in Xcode on Mac OS X Leopard in C++: I have the following
I have a simple question: does Xcode 3.2.4 work on Mac OS X Leopard
I'm a complete Xcode/Objective-C/Cocoa newbie but I'm learning fast and really starting to enjoy
In an Xcode project, if I use std::cout to write to the console the
I am trying to add the Parsekit framework to my OSX Xcode project. I've
Does the iPhone SDK include Xcode for Mac OS X development? Or do I
OS X 10.5.7 (genuine Mac) Xcode 3.1.3 iPhone SDK 3.0 When I try to
I'm quite new to Xcode (and Mac in general). I started a little iPhone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.