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 8888023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:56:51+00:00 2026-06-14T21:56:51+00:00

Sometimes I like to browse Apple source code to see how the pros do

  • 0

Sometimes I like to browse Apple source code to see how the pros do it, and sometimes learn a thing or two. I’m looking now at the header file for NSManagedObjectContext.h, and for their global variables, for say NSManagedObjectContextDidSaveNotification, they declare it like so:

COREDATA_EXTERN NSString * const NSManagedObjectContextDidSaveNotification;

whereas typically it would just be:

extern NSString * const NSManagedObjectContextDidSaveNotification

Cmd+clicking on COREDATA_EXTERN takes me to its definition:

#define COREDATA_EXTERN     extern

So COREDATA_EXTERN is just equal to extern, so my question is, why do they not just use extern?

  • 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-06-14T21:56:52+00:00Added an answer on June 14, 2026 at 9:56 pm

    If you check out the CoreDataDefines.h file, you’ll see a few different definitions for COREDATA_EXTERN, such as:

    #ifdef __cplusplus
    #define COREDATA_EXTERN     extern "C"
    

    or:

    #ifdef __cplusplus
    #define COREDATA_EXTERN     extern "C" _NSWINDOWS_DLL_GOOP
    

    This allows for some platform specific definitions, all contained under a single definition.

    Windows goop, that’s funny. What I’d like to know is when you would be compiling core data on a Windows platform….

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

Sidebar

Related Questions

Sometimes I see code like let (alt : recognizer -> recognizer -> recognizer) =
I sometimes see messages like Process 12990 waits for ExclusiveLock on tuple (889,66) of
When creating iPhone apps in simulator, I sometimes see messages like Springboard failed to
I am not an idiot, but header files make me feel like one sometimes.
I see the new Desktop class (which I'd like to use for its browse(uri)
Can anybody tell me why my Async task fails sometimes like this? I tested
A short, maybe stupid question. For classes and structs, sometimes I like to have
Sometimes i would like to search for text containing a new line character and
When viewing piped output to Less, sometimes I'd like to be able to view
I have a function that takes the exact same args, but sometimes I'd like

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.