• 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: Problem with Auto Layout and drawRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with Auto Layout and drawRect


  • Subject: Re: Problem with Auto Layout and drawRect
  • From: Ben Kennedy <email@hidden>
  • Date: Tue, 08 Sep 2015 10:57:52 -0700

> On 07 Sep 2015, at 5:02 pm, Graham Cox <email@hidden> wrote:
>
> Also, NSColor is immutable so there’s little purpose to having that property ‘copy’, it can be ‘retain’ (or ‘strong’) and it will save you a small amount of space per instance.

As Dave said in his reply, isn't this actually poor advice? It obscures the semantic intent of the property, and likely makes no measurable difference anyhow (presuming that the immutable class implements copy as retain).

b


_______________________________________________

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: Problem with Auto Layout and drawRect
      • From: David Duncan <email@hidden>
References: 
 >Problem with Auto Layout and drawRect (From: Dave <email@hidden>)
 >Re: Problem with Auto Layout and drawRect (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Swift generics, circular type declarations, and segfaults, oh my!
  • Next by Date: Re: Problem with Auto Layout and drawRect
  • Previous by thread: Re: Problem with Auto Layout and drawRect
  • Next by thread: Re: Problem with Auto Layout and drawRect
  • Index(es):
    • Date
    • Thread