• 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: NSArray as a static
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArray as a static


  • Subject: Re: NSArray as a static
  • From: "Clark Cox" <email@hidden>
  • Date: Mon, 1 Sep 2008 14:02:57 -0700

On Mon, Sep 1, 2008 at 11:38 AM, Jean-Daniel Dupas
<email@hidden> wrote:
> Unlike java, Obj-C does not have the concept of class variable.
> Your static variable is a classic C variable, and C variable are not
> automatically initialized to NULL.

Note, for static variables, this is not true. All static variables are
initialized to zero.

> The first time you call init, relationshipMatch may contains anything and
> may not be NULL, and so it will never be properly initialized.

--
Clark S. Cox III
email@hidden
_______________________________________________

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

References: 
 >NSArray as a static (From: Richard Good <email@hidden>)
 >Re: NSArray as a static (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: CoreData, SQLite and GUID
  • Next by Date: NSTableView/NSOutlineView variable row height
  • Previous by thread: Re: NSArray as a static
  • Next by thread: Re: NSArray as a static
  • Index(es):
    • Date
    • Thread