• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: may not respond to '-addSubView:'...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >may not respond to '-addSubView:'... (From: patrick <email@hidden>)

  • Prev by Date: Radix Class
  • Next by Date: Re: may not respond to '-addSubView:'...
  • Previous by thread: may not respond to '-addSubView:'...
  • Next by thread: Re: may not respond to '-addSubView:'...
  • Index(es):
    • Date
    • Thread