• 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
Re: Inconsistent Memory Management Rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistent Memory Management Rules


  • Subject: Re: Inconsistent Memory Management Rules
  • From: Denis Stanton <email@hidden>
  • Date: Thu, 17 Apr 2003 09:07:46 +1200

On Wednesday, April 16, 2003, at 05:38 PM, Sherm Pendley wrote:

On Tuesday, April 15, 2003, at 07:24 PM, Denis Stanton wrote:
NSString * string = [[NSString alloc] init]

The above combines declaration and initialization. The declaration by itself would be:

NSString *string;

Thank you for that. A simple statement, but for me it was one of those"Ahhhh of course!" moments that mark the path of learning.
I think my code contains a number of spurious initializations, which I will watch for in future.

Denis
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Inconsistent Memory Management Rules (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: NSTextView - read line by line?
  • Next by Date: Re: Jaguar and pre-Jaguar applications
  • Previous by thread: Re: Inconsistent Memory Management Rules
  • Next by thread: Re: Inconsistent Memory Management Rules
  • Index(es):
    • Date
    • Thread