• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Simple Newbie Question on Calling a Method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Simple Newbie Question on Calling a Method
      • From: Sailor Quasar <email@hidden>
    • Re: Simple Newbie Question on Calling a Method
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Bindings: Value With Pattern Question
  • Next by Date: Re: docs for binding options in IB
  • Previous by thread: Re: -get<Key>:range:
  • Next by thread: Re: Simple Newbie Question on Calling a Method
  • Index(es):
    • Date
    • Thread