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

  • SEARCH
  • Home
  • 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 666937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:52:25+00:00 2026-05-13T23:52:25+00:00

My head is about to explode with this logic, can anyone help? Class A

  • 0

My head is about to explode with this logic, can anyone help?

Class A #imports Class B.
Class A calls Method A in Class B.

This works great

Class B wants to send a response back to Class A from another method that is called from Method A. If you #import Class A from Class B, it is in effect an infinite loop and the whole thing crashes.

Is there a way to do this properly, like a parent type thing?

BTW, I’m developing for iPhone.

EDIT
When i #import Class A from Class B i get this compiler error…

error: expected specifier-qualifier-list before 'StoreHoursCore'

Any ideas?

  • 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-13T23:52:25+00:00Added an answer on May 13, 2026 at 11:52 pm

    I believe that using the @class directive should solve your issue.

    Using @class forward declares your class type in order that the compiler doesn’t cough.

    Take a look at this question on SO.

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

Sidebar

Related Questions

I'm about to put my head thru this sliding glass door. I can't figure
My head is about to explode after looking into why this is not working
My head is about to explode with everything I've read about SQL Server and
I am scratching my head about this. My scenario are that I need to
I've been scratching my head about this for the last 4 hours, trying out
Good evening, I have been trying to wrap my head about this, below, code
Friends its really giving me a great head ache about the problem I am
This is more of a question about getting my head around the process I
I've been banging my head against the desk for about 2 hours on this
Scratching my head about this. In the rendered HTML for the code below, the

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.