FROM : James Spencer
DATE : Sat Oct 16 15:29:05 2004
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
>
James P. Spencer
Rochester, MN
<email_removed>
"Badges?? We don't need no stinkin badges!"
DATE : Sat Oct 16 15:29:05 2004
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
>
James P. Spencer
Rochester, MN
<email_removed>
"Badges?? We don't need no stinkin badges!"
| Related mails | Author | Date |
|---|---|---|
| Chris | Oct 16, 10:41 | |
| James Spencer | Oct 16, 15:29 |






Cocoa mail archive

