• 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: Value of self changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Value of self changes


  • Subject: Re: Value of self changes
  • From: Uli Kusterer <email@hidden>
  • Date: Fri, 15 Nov 2013 20:10:47 +0100

On 15 Nov 2013, at 19:59, Jerry Krinock <email@hidden> wrote:
> The copying of that header cell does require you to say “implementation detail” and close your eyes, though.  It seems the cell is only copied in a table view, not an outline view, and only when the width is reduced, and further this is new in 10.9, which is why the memory leaks that were a side effect of my earlier kludge recently started registering in test.


If your class declares itself as being copyable (which NSCell does, and your subclass inherits that), you need to expect to be copied. No reason why you'd have to close your eyes. You made a promise, but didn't keep it.

That 10.9 takes advantage of this guarantee in more situations now under the hood is their prerogative. That you got away with doing it wrong in earlier versions most of the time was just you being lucky. But that's encapsulation. If they come up with a way to e.g. make it faster for you, without you doing any extra work, just by relying on guarantees you've already given them, they are allowed to do so.

-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."




_______________________________________________

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: 
 >Value of self changes (From: Jerry Krinock <email@hidden>)
 >Re: Value of self changes (From: Uli Kusterer <email@hidden>)
 >Re: Value of self changes (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Value of self changes
  • Next by Date: Re: PDFView not rendering pages on scroll
  • Previous by thread: Re: Value of self changes
  • Next by thread: CoreData error after moving to Xcode 5
  • Index(es):
    • Date
    • Thread