bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segfault when NSTextView is released


From: David Chisnall
Subject: Re: Segfault when NSTextView is released
Date: Sat, 15 Feb 2014 12:39:52 +0000

On 14 Feb 2014, at 16:36, Fred Kiefer <fredkiefer@gmx.de> wrote:

> Looks like this is rather a question for David. It is more about the
> semantic of ARC for different sorts of ivars, than about NSTextView itself.
> In the code you did send the tvIvar ivar was not defined as a property.
> In this case I would expect that the compiler wont do anything special.

The semantics of ARC are not complicated when it comes to ivars.  They simply 
do a retain of the new value then a release of the old one, unless the pointer 
is marked as __unsafe_unretained.  If we have public ivars in GNUstep headers 
that are intended to hold object references that are not retained, then an 
assignment to them from ARC code will break things.

David

-- Sent from my PDP-11




reply via email to

[Prev in Thread] Current Thread [Next in Thread]