• 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: Best Way to Handle Properties?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best Way to Handle Properties?


  • Subject: Re: Best Way to Handle Properties?
  • From: "Shawn Erickson" <email@hidden>
  • Date: Wed, 20 Aug 2008 21:56:12 -0700

On Wed, Aug 20, 2008 at 9:46 PM, Graham Cox <email@hidden> wrote:

> Anyone got any thoughts on this? Is there any valid case for doing this, and
> having this written into a coding standard?

Only possible pathway (ignoring memory smasher) is something like a
double init ( [[[SomeClass alloc] init] init] ). If you are worried
about that all you need is a single ivar that you set to true when
initialized and assert that that ivar is false when init is called.

-Shawn
_______________________________________________

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: 
 >Best Way to Handle Properties? (From: Dave <email@hidden>)
 >Re: Best Way to Handle Properties? (From: Ken Thomases <email@hidden>)
 >Re: Best Way to Handle Properties? (From: Dave <email@hidden>)
 >Re: Best Way to Handle Properties? (From: Ken Thomases <email@hidden>)
 >Re: Best Way to Handle Properties? (From: Dave <email@hidden>)
 >Re: Best Way to Handle Properties? (From: Ken Thomases <email@hidden>)
 >Re: Best Way to Handle Properties? (From: Dave <email@hidden>)
 >Re: Best Way to Handle Properties? (From: "Shawn Erickson" <email@hidden>)
 >Re: Best Way to Handle Properties? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Best Way to Handle Properties?
  • Next by Date: Re: NSTableColumn not usable with binder of class NSTextValueBinder?
  • Previous by thread: Re: Best Way to Handle Properties?
  • Next by thread: Receiving mouseEnter and mouseExit events.
  • Index(es):
    • Date
    • Thread