• 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: Mutable Convenience Methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mutable Convenience Methods


  • Subject: Re: Mutable Convenience Methods
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 20 Feb 2008 09:45:15 -0700


On Feb 20, 2008, at 9:20 AM, Jonathon Mah wrote:

I think mutable subclasses should override the convenience methods of their superclass to return a mutable version. For example, [NSMutableArray array] and [NSMutableString string] both return mutable versions, but [NSMutableParagraphStyle defaultParagraphStyle] does not. Is this considered a bug in NSMutableParagraphStyle?


We had a big discussion about this a while ago. A number of people preferred the class methods that returned an un-typedefed object, while some purists came out against them. So it really depends on who you ask...

Nick Zitzmann
<http://www.chronosnet.com/>




_______________________________________________

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: 
 >Mutable Convenience Methods (From: Jonathon Mah <email@hidden>)

  • Prev by Date: Mutable Convenience Methods
  • Next by Date: Re: Mutable Convenience Methods
  • Previous by thread: Mutable Convenience Methods
  • Next by thread: Re: Mutable Convenience Methods
  • Index(es):
    • Date
    • Thread