• 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: Protocol-conforming object does not include retain?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Protocol-conforming object does not include retain?


  • Subject: Re: Protocol-conforming object does not include retain?
  • From: "Michael Ash" <email@hidden>
  • Date: Sat, 12 Jul 2008 00:57:01 -0400

On Fri, Jul 11, 2008 at 11:52 PM, Markus Spoettl
<email@hidden> wrote:
> On Jul 11, 2008, at 7:59 PM, Bill Bumgarner wrote:
>>
>> id mGrid;
>>
>> ... you would be indicating to the compiler that mGrid might potentially
>> respond to any method ever seen.
>
> I'm either misunderstand what you're saying or something is wrong with my
> compiler because this:
>
>    id bar;
>
>    [bar foo:NSZeroRect super:nil underConstruction:YES];
>
> triggers a compiler warning for me (Xcode 3.0):
>
>    warning: no '-foo:super:underConstruction:' method found
>
> The only thing that removes that warning (for me) is an informal protocol on
> NSObject that declares the method.

The key words here being "ever seen". Unless you have some more stuff
in your code, the compiler has never seen a
-foo:super:underConstruction: method.

Mike
_______________________________________________

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

  • Follow-Ups:
    • Re: Protocol-conforming object does not include retain?
      • From: Markus Spoettl <email@hidden>
References: 
 >Protocol-conforming object does not include retain? (From: Steve Weller <email@hidden>)
 >Re: Protocol-conforming object does not include retain? (From: Bill Bumgarner <email@hidden>)
 >Re: Protocol-conforming object does not include retain? (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Protocol-conforming object does not include retain?
  • Next by Date: Re: TableView partial bindings
  • Previous by thread: Re: Protocol-conforming object does not include retain?
  • Next by thread: Re: Protocol-conforming object does not include retain?
  • Index(es):
    • Date
    • Thread