Re: odd problems with NSData / OpenGL
Re: odd problems with NSData / OpenGL
- Subject: Re: odd problems with NSData / OpenGL
- From: "Sean McBride" <email@hidden>
- Date: Tue, 8 Dec 2009 19:34:11 -0500
- Organization: Rogue Research Inc.
On 12/9/09 2:25 AM, Henri Häkkinen said:
>On Dec 9, 2009, at 2:05 AM, Sean McBride wrote:
>>
>> And these are ivars I guess? If so, they should live as long as
>'self' does.
>
>Yes, they are ivars.
>
>I was able to resolve the issue by adding invocation to retain: for both
>_vertices and _indices. So yep, it was a memory management issue. I
>better read the Memory Management and Garbage Collection guides again.
retain does nothing with garbage collection, therefore you aren't using
garbage collection.
>> Do you use the 'bytes' method? Are you aware of the issues with it
>under GC?
>
>Yes, I do use their bytes method when accessing their contents in
>drawRect: method. What are the issues?
<http://lists.apple.com/archives/Cocoa-dev/2008/Jun/msg00603.html>
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden