may not respond to '-addSubView:'...
may not respond to '-addSubView:'...
- Subject: may not respond to '-addSubView:'...
- From: patrick <email@hidden>
- Date: Sun, 8 Jan 2006 21:42:41 -0800
I'm creating a simple screen saver that will use a custom view class
from another project. I'm trying to add this second view to the screen
saver view with:
@implementation MyScreenSaverView
- (id)initWithFrame:(NSRect)frame
{
// create custom view
myView = [ ... initialize ... ];
[self addSubView:myView];
}
...
@end
When I compile, I get a warning:
(Messages without a matching method signature will be assumed to
return 'id' and accept '...' as arguments.)
warning: 'MyScreenSaverView' may not respond to '-addSubView:'
Given that ScreenSaverView is an NSView, why wouldn't it respond to addSubView?
Patrick
_______________________________________________
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