• 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
Memory allocation issues with NSObject and NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Memory allocation issues with NSObject and NSString
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: ObjC in time-critical parts of the code
  • Next by Date: Re: Memory allocation issues with NSObject and NSString
  • Previous by thread: Re: Check URL Status
  • Next by thread: Re: Memory allocation issues with NSObject and NSString
  • Index(es):
    • Date
    • Thread