• 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: Why is compiler warning for +setKeys:triggerChangeNotificationsForDependentKey: ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is compiler warning for +setKeys:triggerChangeNotificationsForDependentKey: ??


  • Subject: Re: Why is compiler warning for +setKeys:triggerChangeNotificationsForDependentKey: ??
  • From: Ken Ferry <email@hidden>
  • Date: Tue, 20 Apr 2010 20:00:23 -0700

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 <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Why is compiler warning for +setKeys:triggerChangeNotificationsForDependentKey: ?? (From: Steve Cronin <email@hidden>)

  • Prev by Date: Re: Why is compiler warning for +setKeys:triggerChangeNotificationsForDependentKey: ??
  • Next by Date: Custom progress bar for QTMovie??
  • Previous by thread: Re: Why is compiler warning for +setKeys:triggerChangeNotificationsForDependentKey: ??
  • Next by thread: Custom progress bar for QTMovie??
  • Index(es):
    • Date
    • Thread