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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:22:43+00:00 2026-06-15T19:22:43+00:00

I have 2 classes, an NSObject and an NSView. No AppDelegate. I was getting

  • 0

I have 2 classes, an NSObject and an NSView. No AppDelegate.

I was getting a hard error “method definition not in @implementation context” even though the methods were between @implementation and @end. Moving a #import ahead of @implementation eliminated that but then variables from the other file were not known. To get rid of it, I wound up // commenting out all the code lines in both .h and .m files. There’s no code left except @interfaces, @implementations, and @ends.

I still get a warning “@end must appear in implementation context.” One of them appears immediately after the @end!

I have not attempted to use IB in this program.

Other programs compile correctly, and I think the code is correct in his one and it should work.

Is there some way the compiler gets stuck? OSX 10.6.8, Xcode 3.2.6.

  • 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-15T19:22:44+00:00Added an answer on June 15, 2026 at 7:22 pm

    I gave up on that project, created a new project, and copied and pasted the text from the bad one. The new project works fine with the same old text.
    Then I ran memtest repeatedly and Applejack to clean up. The hardware is ok.

    Probably the compiler is flaky; I’ve had to do this a couple times this year. Last time an error message said that the compiler had a partition problem; Google links said to upgrade and maybe the new version would fix the problem. So I installed Xcode 3.2.6, which produced the same error, unfortunately. Copy and paste to a new project was necessary, again.

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

Sidebar

Related Questions

I have two classes: BaseClass : NSObject AdvanceClass : BaseClass And in AdvanceClass i
I have a classes: BasicObject : NSObject AdvObject : BasicObject in other class i
I have two classes, a class1 which is an NSObject and a class2 which
I have 2 classes, Parent and Child, and Parent has a class method named
Say I have two classes: @interface Rectangle: NSObject { int width; int height; }
I have two classes. APPagine.h #import <Foundation/Foundation.h> @interface APPagineMedia : NSObject @property (nonatomic, retain)
I have two classes: ClassA and ClassB`. ClassA implements UIViewController . ClassB implements NSObject
I have two classes in my app, GHHaiku (a subclass of NSObject ) and
I have created my own classes Category.h and Category.m. Category class is inheriting NSObject.
I have 2 classes: AppDelegate and ViewAddFriendsWindowObject. In AppDelegate.m i have these lines of

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.