Memory allocation issues with NSObject and NSString
Memory allocation issues with NSObject and NSString
- Subject: Memory allocation issues with NSObject and NSString
- From: "Devraj Mukherjee" <email@hidden>
- Date: Mon, 19 Jan 2009 15:09:03 +1100
Hi all,
Two quick questions
1. If I have an NSString and I simply assign it = @"" does that
initialize it or do I have do go NSString *someString = [[NSString
alloc] init];
2. If I have an NSObject class and I define an init messge, do I have
to do self = [super init] or is that not important when extending from
NSObject.
Thanks for your response, within the responses of those two questions
may lie the answer of my app's memory allocation issues.
--
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)
_______________________________________________
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