On Dec 7, 2009, at 11:46 PM, Henri Häkkinen wrote:
I have a simple Cocoa document-based application, which uses a custom
NSOpenGLView derived class. This view object has a reference to the document
object (this binding is set in the nib file), and the document has a
reference to a Mesh
On Dec 8, 2009, at 6:42 PM, David Duncan wrote:
More than likely this is a memory management problem. Specifically, you
probably aren't claiming ownership of the NSData object that you store in
your instance variable, and thus it is being deallocated out from under you.
I was under the
If you don't turn GC on, then you likely don't have it on. Check your
project settings, as most if the project templates do not enable GC.
--
David Duncan @ My iPhone
On Dec 8, 2009, at 3:52 PM, Henri Häkkinen hen...@henuxsoft.com
wrote:
On Dec 8, 2009, at 6:42 PM, David Duncan wrote:
On Dec 8, 2009, at 4:52 PM, Henri Häkkinen wrote:
I was under the impression that automatic garbage collection was used in Mac
OS X 10.5 and over, so retaining and releasing objects was handled
automatically?
No; you have to turn it on in the application, for two reasons:
1. Tiger and
On 12/9/09 1:52 AM, Henri Häkkinen said:
I was under the impression that automatic garbage collection was used in
Mac OS X 10.5 and over, so retaining and releasing objects was handled
automatically?
Mostly automatic. :)
This is the initializer method of my Mesh class (I'm using OpenCTM
library
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
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,
Hello.
I have odd problems with using NSData, maybe someone could point me what's
going wrong here.
I have a simple Cocoa document-based application, which uses a custom
NSOpenGLView derived class. This view object has a reference to the document
object (this binding is set in the nib file),