• 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
may not respond to '-addSubView:'...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: may not respond to '-addSubView:'...
      • From: Joshua Scott Emmons <email@hidden>
    • Re: may not respond to '-addSubView:'...
      • From: Lester Dowling <email@hidden>
  • Prev by Date: committing an NSTextView bound to Core Data
  • Next by Date: Radix Class
  • Previous by thread: committing an NSTextView bound to Core Data
  • Next by thread: Re: may not respond to '-addSubView:'...
  • Index(es):
    • Date
    • Thread