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                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to