Other reasonable responses aside, what did you #import?

If you #import'd Cocoa/Cocoa.h, I would be surprised to see this.

If you brought in only NSObject.h, well, the declaration isn't in that file.

-Ken

On Tue, Apr 20, 2010 at 6:48 PM, Steve Cronin <steve_cro...@mac.com> wrote:

> Folks;
>
> Subclassed NSObject now getting compiler warnings  - don't understand why?
>
> @interface ABC : NSObject {
> }
> @end
>
> @implementation ABC
> + (void)initialize
> {
> ...
>     keys = [NSArray ..];
>    [self setKeys:keys triggerChangeNotificationsForDependentKey:@"xyz"];
> ...
> }
> @end
>
> I'm seeing compiler warnings -> : warning: 'ABC' may not respond to
> '+setKeys:triggerChangeNotificationsForDependentKey:'
>
> What have I overlooked?
> Steve
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
>
> This email sent to kenfe...@gmail.com
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to