Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

method definition not in @implementation context

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  Why doesn't this program crash on a Mac ?  
Author Message
William

External


Since: Jan 04, 2008
Posts: 7



(Msg. 1) Posted: Sat Feb 02, 2008 6:41 pm
Post subject: method definition not in @implementation context
Imported from groups: comp>sys>mac>programmer>help (more info?)

This message is not archived

 >> Stay informed about: method definition not in @implementation context 
Back to top
Login to vote
Sean McBride

External


Since: Jan 05, 2004
Posts: 474



(Msg. 2) Posted: Sun Feb 03, 2008 12:49 am
Post subject: Re: method definition not in @implementation context [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
William wrote:

> I've got an error that I don't quite understand.
>
> PreferenceController.m:12: fatal error: method definition not in
> @implementation context
>
> - (id) init
>
> { // <--------- the error points to this line
>
> self = [super initWithWindowNibName:@"Preferences"];
>
> return self;
> }
>
> Anyone have an idea what this means?

It means your method definition is not in an @implementation context. Smile
Show us the rest of your file's contents. Where is -(id)init ? Is it
within @implementation?

 >> Stay informed about: method definition not in @implementation context 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Is there something wrong in this class definition? - It compiles fine, but a main that uses any of these constructors exits returning 1. i.e. If I use... Mat m; or... Mat m( 5, 6 ); or... Mat m( 5, 6, 0.34 ); class Mat { private : // member data ..

Reliable definition of 80 bit floating point value - At work, I am dealing with a cross platform code base that attempts to define an 80-bit floating point value with a definition similar to the following: typedef long double float80; With the Macintosh compiler this definition produces thi...

Warning: 'Class' does not respond to 'method' - I have three classes: Map, which accumulates NSMutableArrays of the other two classes, Surface and Vertex. Communication between Map and the other two classes works fine. But Surface and Vertex needs to keep pointers to instances of each other. The..

override mouseMoved method in ScreenSaverView? - I am making a screen saver with ScreenSaverView, but I don't want it to wake when the mouse moves, only when it is clicked. I assume that you need to override the mouseMoved method of NSView, which I tried to do by adding "-(void)mouseMoved:(NSEven...

Class method and autorelease objects - I want to set up some user defaults in an application, but I keep getting an address check when I go to regirster the defaults. This is not the first time I have registered user defaults, but it is the first time I tried to do it using autorelease..
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]