Re: may not respond to '-addSubView:'...
Re: may not respond to '-addSubView:'...
- Subject: Re: may not respond to '-addSubView:'...
- From: Lester Dowling <email@hidden>
- Date: Mon, 9 Jan 2006 16:55:03 +1100
On 09/01/2006, at 4:42 PM, patrick wrote:
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:
That's because the method name doesn't have an uppercase V. From the
manual:
- (void)addSubview:(NSView *)aView
Notice the difference between the lowercase 'v' and the uppercase 'V'.
-- Lester
_______________________________________________
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