discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Status of ARC + corebase


From: Stefan Bidi
Subject: Re: Status of ARC + corebase
Date: Tue, 28 Jan 2014 14:48:51 -0600

Since no one has responded to you, yet, I'll go ahead and throw my 2 cents.  I'm the "maintainer" of corebase, but I have no idea how to interface ARC with corebase's retain count system.

That said, where does corebase reference object pointers in structures?  CF uses void * extensively in structures, but I don't remember seeing actual object pointers anywhere.


On Fri, Jan 24, 2014 at 1:21 PM, artware <artware@gmail.com> wrote:
Hi everyone,

I'm developing a server application that uses ARC, and I'm trying to
figure out how to mesh with corebase and/or another CF implementation.

I haven't done much with mixing ARC and non-ARC code, but from
everything I've read, it seems like I should be able to use the
static, non-ARC corebase framework in my project. So the only problem
is that with ARC on, clang looks at the corebase headers and doesn't
like to see object pointers in structs.

How dangerous would it be to add __unsafe_unretained to these pointers
and cross my fingers? I was able to get the server compiled in this
way, but I know how problematic it is to leave dangling pointers to
objects.

Thanks,
Ben

_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep


reply via email to

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