Re: closing windows
Re: closing windows
- Subject: Re: closing windows
- From: James Spencer <email@hidden>
- Date: Sat, 16 Oct 2004 08:29:05 -0500
It would be helpful to see a few lines of code where you are getting
the warning and the actual error message. Usually these error messages
come from misspelling a message name or failing to add a trailing colon
so that the message doesn't match the method signature but I don't know
how you could have a problem with "close".
Even more I'm not really sure how in the context of the errors you are
getting why you need the compiler "to recognize the name of the
NSWindowController I subclassed in IB when I built the NIB"; I assume
you are trying to call -close which is an instance method so needs a
reference to the actual instance of the controller that is controlling
your window. If you are calling something like
[MyWindowControllerSubclass close] then of course you get the error
message: there is no close class method in NSWindowController so there
is no such method in MyWindowControllerSubclass unless you added it.
Spence
On Oct 16, 2004, at 3:41 AM, Chris wrote:
[NEWBIE]
How is it possible to programatically close the window created
when the mainMenu.nib is loaded ? (Having succcessfully opened
another one)
I can't seem to get my code to recognise the name of the
NSWindowController I subclassed in IB when I built the nib.
I get "undeclared" and "first use in this function" warnings in
Xcode when I try this.
Help !
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
James P. Spencer
Rochester, MN
email@hidden
"Badges?? We don't need no stinkin badges!"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden