• 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: Memory Mania Revisted
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory Mania Revisted


  • Subject: Re: Memory Mania Revisted
  • From: Lance Bland <email@hidden>
  • Date: Mon, 11 Feb 2002 17:05:51 -0500

Jonathan,

I agree with you, that is my recollection also - having lived it. Thanks for the information.

-lance

On Monday, February 11, 2002, at 04:53 PM, Jonathan Hendry wrote:

Apparently, the shift to [[Foo alloc] init] from +new
happened around NeXTSTEP 2.0, and there may be something
in the 2.0/2.1 release notes.

The rationale was apparently related to the use of memory
zones, using +allocWithZone. Zones were introduced in 2.0

There's some discussion to be found on deja.com, especially
around 1991/1992. The deprecation of +new was apparently
taught at NeXT DevCamp classes.

After 2.0, +new was to be used for Singletons, in which there's only
ever one instance of the class.

It seems that this usage has been set aside in favor of more explicit
method names, such as [NSWorkspace sharedWorkspace] or [NSOpenPanel openPanel].
(Probably as part of the general move towards more wordy method signatures
in OpenStep.)


_______________________________________________
Lance Bland
System Administrator at VVI
mailto:email@hidden
http://www.vvi.com
Realtime, bulk and web data reporting and visualization
_______________________________________________
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.

  • Prev by Date: Re: Multiple nibs
  • Next by Date: Re: Memory Mania Revisted
  • Previous by thread: Re: Memory Mania Revisted
  • Next by thread: Re: Memory Mania Revisted
  • Index(es):
    • Date
    • Thread