Simple Newbie Question on Calling a Method
Simple Newbie Question on Calling a Method
- Subject: Simple Newbie Question on Calling a Method
- From: Jerry Krinock <email@hidden>
- Date: Sat, 20 Dec 2003 12:17:23 -0800
I've been trying to bring window to the front for a couple hours now, even
looking in books. Probably my whole conception of the way methods are
called in Objective-C is wrong.
in Controller.h:
@interface Controller : NSObject
{
IBOutlet id sorterWindow ;
... // other outlets
}
- (void) bringSorterWindowToFront;
... // other method declarations
@end
in Controller.mm:
@implementation Controller
- (void)bringSorterWindowToFront
{
[sorterWindow makeKeyAndOrderFront: self];
}
.. // other method definitions
@end
in another .mm file, I call my function with the message:
[Controller bringSorterWindowToFront] ;
Result: It compiles OK, but upon running, I get:
2003-12-20 08:27:43.183 JerrysSorter[11866] *** +[Controller
bringSorterWindowToFront]: selector not recognized
2003-12-20 08:27:43.184 JerrysSorter[11866] *** Uncaught exception:
<NSInvalidArgumentException> *** +[Controller bringSorterWindowToFront]:
selector not recognized.
Thanks for an answer to this!
Jerry Krinock
San Jose, CA
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.