• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: odd problems with NSData / OpenGL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >odd problems with NSData / OpenGL (From: Henri Häkkinen <email@hidden>)
 >Re: odd problems with NSData / OpenGL (From: David Duncan <email@hidden>)
 >Re: odd problems with NSData / OpenGL (From: Henri Häkkinen <email@hidden>)
 >Re: odd problems with NSData / OpenGL (From: "Sean McBride" <email@hidden>)
 >Re: odd problems with NSData / OpenGL (From: Henri Häkkinen <email@hidden>)

  • Prev by Date: Re: Improving speed of NSCollectionView scrolling
  • Next by Date: Re: [iPhone] UINavigationController and UINavigationBar
  • Previous by thread: Re: odd problems with NSData / OpenGL
  • Next by thread: NSURLConnection Problem Inside QuickLook Generator
  • Index(es):
    • Date
    • Thread