• 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: dot notation doesn’t work as expected for some library classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dot notation doesn’t work as expected for some library classes


  • Subject: Re: dot notation doesn’t work as expected for some library classes
  • From: Marc Liyanage <email@hidden>
  • Date: Mon, 25 May 2009 09:05:43 +0200


Thanks Gwynne and Mike, that clears it up. I didn’t think about the missing -string method. When I remove the getter from my custom class it behaves the same and that was what I wanted to see.


On 25.05.2009, at 00:21, Michael Ash wrote:

And neither should you. Your use of the dot syntax here is incorrect,
because 'string' is not a property of NSMutableString as the ObjC
language defines (however vaguely) it.

Absolutely, I only use the dot notation for accessors. I never used something like that in real code.


I was only using it to figure out how the compiler does the transformation and I was looking specifically for a class that has a (void)setXXX: method that is not really a property accessor.


Thanks again






_________________________________________________________________ Marc Liyanage http://www.entropy.ch


_______________________________________________

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: 
 >dot notation doesn’t work as expected for some library classes (From: Marc Liyanage <email@hidden>)
 >Re: dot notation doesn’t work as expected for some library classes (From: Michael Ash <email@hidden>)

  • Prev by Date: How to safely break read stream?
  • Next by Date: Re: Emulating Carbon menu bevel button?
  • Previous by thread: Re: dot notation doesn’t work as expected for some library classes
  • Next by thread: Core Data and ordered to-many relations
  • Index(es):
    • Date
    • Thread