Re: GC, plain C structs, and when to use __strong

2010-09-22 Thread Clark S. Cox III
On Sep 21, 2010, at 4:13 PM, Quincey Morris wrote: > On Sep 21, 2010, at 15:37, Sean McBride wrote: > >> If I have a plain C struct that contains some Obj-C object pointers like: >> >> struct { >> int boring; >> NSString* string; >> } MyStruct >> >> What must I do to be safe in GC? >> >> a) I

Re: GC, plain C structs, and when to use __strong

2010-09-21 Thread Quincey Morris
On Sep 21, 2010, at 15:37, Sean McBride wrote: > If I have a plain C struct that contains some Obj-C object pointers like: > > struct { > int boring; > NSString* string; > } MyStruct > > What must I do to be safe in GC? > > a) I know I must allocate my structs using NSAllocateCollectable and