[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segfault when NSTextView is released
From: |
Fred Kiefer |
Subject: |
Re: Segfault when NSTextView is released |
Date: |
Sat, 15 Feb 2014 18:23:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
On 15.02.2014 13:39, David Chisnall wrote:
> 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.
Thank you David for this explanation. Did you also have a look at the
code Johannes did send?
His problem is not about any GNUstep ivar, but an ivar in his own code.
And the question at hand is whether this behaviour is to be expected, a
bug in GNUstep gui (highly unlikely as the other branch of his code
works) or a bug in libobjc2.
It would be great if you could comment on that.
Fred
- Segfault when NSTextView is released, Lundberg, Johannes, 2014/02/12
- Re: Segfault when NSTextView is released, Lundberg, Johannes, 2014/02/13
- Re: Segfault when NSTextView is released, Lundberg, Johannes, 2014/02/13
- Re: Segfault when NSTextView is released, Fred Kiefer, 2014/02/13
- Re: Segfault when NSTextView is released, Lundberg, Johannes, 2014/02/13
- Re: Segfault when NSTextView is released, Lundberg, Johannes, 2014/02/13
- Re: Segfault when NSTextView is released, Fred Kiefer, 2014/02/14
- Re: Segfault when NSTextView is released, Sebastian Reitenbach, 2014/02/14
- Re: Segfault when NSTextView is released, Lundberg, Johannes, 2014/02/14
- Re: Segfault when NSTextView is released, David Chisnall, 2014/02/15
- Re: Segfault when NSTextView is released,
Fred Kiefer <=
- Re: Segfault when NSTextView is released, Lundberg, Johannes, 2014/02/15
- Re: Segfault when NSTextView is released, Matt Rice, 2014/02/16
- Re: Segfault when NSTextView is released, Lundberg, Johannes, 2014/02/16
- Re: Segfault when NSTextView is released, Lundberg, Johannes, 2014/02/18