FROM : Robert Walker
DATE : Wed May 31 20:58:32 2006
Graham,
Study this guide very closely. It will explain, hopefully, all you
need to know about memory management in Cocoa/ObjC:
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/
index.html
On May 31, 2006, at 2:51 PM, Graham wrote:
> Just learning OBJC...
>
> I have a class with an NSString * instance variable.
> Class has two methods, method a sets a value into the string, when
> method b is called and tries to access the string it crashes my
> app. gdb says the string instance is 'invalid'.
> How can an instance variable become invalid? What does it even mean?
> I suspect that since OBJC uses pointers everywhere that the
> instance got stamped on somehow?
> I have been living in the safe world of Java for too long I fear.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/robertwalker1%
> 40mac.com
>
> This email sent to <email_removed>
--
Robert Walker
<email_removed>
DATE : Wed May 31 20:58:32 2006
Graham,
Study this guide very closely. It will explain, hopefully, all you
need to know about memory management in Cocoa/ObjC:
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/
index.html
On May 31, 2006, at 2:51 PM, Graham wrote:
> Just learning OBJC...
>
> I have a class with an NSString * instance variable.
> Class has two methods, method a sets a value into the string, when
> method b is called and tries to access the string it crashes my
> app. gdb says the string instance is 'invalid'.
> How can an instance variable become invalid? What does it even mean?
> I suspect that since OBJC uses pointers everywhere that the
> instance got stamped on somehow?
> I have been living in the safe world of Java for too long I fear.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/robertwalker1%
> 40mac.com
>
> This email sent to <email_removed>
--
Robert Walker
<email_removed>






Cocoa mail archive

