Re: odd problems with NSData / OpenGL
Re: odd problems with NSData / OpenGL
- Subject: Re: odd problems with NSData / OpenGL
- From: Henri Häkkinen <email@hidden>
- Date: Wed, 9 Dec 2009 02:25:30 +0200
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.
> 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?
Regards,
Henri Häkkinen
_______________________________________________
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