• 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
NSWindow and how to message it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindow and how to message it


  • Subject: NSWindow and how to message it
  • From: John Pannell <email@hidden>
  • Date: Tue, 22 May 2001 09:01:06 -0600

Hi there-

I have encountered puzzling behavior in trying to send a message to a window - I clearly am missing something very simple. Here's the details:

In IB, I have created a window (myWindow) and a controller (myController). myController has an outlet called myWindow, and I control-dragged the connection from myController to myWindow. myController also has an outlet called myButton, and an action called hideMyWindow. The button in IB has been connected to the hideMyWindow action.

In PB, I have

- (void)hideMyWindow:(id)sender
{
[myWindow orderOut];
}

Problems abound - while building, I am told "method not found", while running, I get the error "-[NSWindow orderOut] : selector not recognized". So, clearly everything is hooked up OK in IB (since I get the confirmation that the message is being sent to an NSWindow), but for some reason NSWindow doesn't want to respond (even though the documentation says this is a perfectly reasonable message to send to a window).

If you can, please reveal (gently) the silly error in my ways :-)

Hope everyone is enjoying WWDC...

John


  • Follow-Ups:
    • Re: NSWindow and how to message it
      • From: Andreas Monitzer <email@hidden>
  • Prev by Date: Re: Debugging Cocoa & IB
  • Next by Date: Re: NSTabView question
  • Previous by thread: Re: java cocoa appkit application and multiple threads
  • Next by thread: Re: NSWindow and how to message it
  • Index(es):
    • Date
    • Thread