Re: Value of self changes
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