Seemingly bizzare calling of method
Seemingly bizzare calling of method
- Subject: Seemingly bizzare calling of method
- From: Mike Abdullah <email@hidden>
- Date: Sun, 15 Jan 2006 00:25:18 +0000
OK, so I have a fairly bog standard doc-based Cocoa app. I've
subclassed NSWindowController so that its the "owner" of the document
windows.
I'm trying to write a method in my window controller that my
NSDocument can call in order to alter the interface. However, things
are happening that I can't figure out!
In the MyWindowController.h I've added:
- (void)myMethod:(NSString *)aString;
And so then in MyWindowController.m there's:
- (void) myMethod:(NSString *)aString
{
NSLog(@"myMethod has been called");
}
So I fire the app up. And in the log I see "myMethod has been called"
But this is what I don't understand - I haven't written any code that
actually calls this method yet! So why on Earth is it being called?
What have I done wrong?!?
Please help!
Mike A.
_______________________________________________
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