• 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: Calling getter on const object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling getter on const object


  • Subject: Re: Calling getter on const object
  • From: Jonny Taylor <email@hidden>
  • Date: Mon, 8 Nov 2010 19:01:03 +0000

> I'm new at this too, so perhaps I am completely off here. My guess is that it isn't the const that is messing this up, but the non-class type. The problem I see is that "frame" is a pointer to an objc_object and objc_objects aren't the same as NSObjects (but, like I said, I'm new, so maybe they are interchangeable here). Does it work if you try declaring frame as a NSObject<FrameProtocol> instead of an id<FrameProtocol>?
It was your suggestion here that got me thinking along the right track, in fact, but that declaration does not actually make any sense as far as I know - that is not the normal way of declaring a generic pointer that conforms to a protocol, and it leads to a whole load of warnings/errors elsewhere in the code..._______________________________________________

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: 
 >Calling getter on const object (From: Jonny Taylor <email@hidden>)
 >Re: Calling getter on const object (From: David Duncan <email@hidden>)
 >Re: Calling getter on const object (From: Jonny Taylor <email@hidden>)
 >Re: Calling getter on const object (From: Eeyore <email@hidden>)

  • Prev by Date: Re: Calling getter on const object
  • Next by Date: Launchd and terminal process launch - is there any difference from that process' viewpoint?
  • Previous by thread: Re: Calling getter on const object
  • Next by thread: Re: Calling getter on const object
  • Index(es):
    • Date
    • Thread