[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
- 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 <=
- Re: Segfault when NSTextView is released, Fred Kiefer, 2014/02/15
- 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