Re: NSString Question
Re: NSString Question
- Subject: Re: NSString Question
- From: Andy Lee <email@hidden>
- Date: Mon, 18 Aug 2008 13:28:07 -0400
On Aug 18, 2008, at 10:54 AM, Dave wrote:
thePropertiesInfoPtr pointer to a C Structure that contains the
following member:
NSString* mNameString;
As a general note, by mixing structs and objects you're opening the
door to nasty memory management bugs. I'd recommend going with
objects for everything -- create a class instead of using the struct,
learn how to apply the standard Cocoa memory management techniques,
and use existing classes like NSFileHandle and NSData.
Here's the Bible on memory management:
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html
>
--Andy
_______________________________________________
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