• 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: Toggle framework in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toggle framework in Cocoa


  • Subject: Re: Toggle framework in Cocoa
  • From: Uli Kusterer <email@hidden>
  • Date: Tue, 10 Dec 2013 15:15:33 +0100

On 10 Dec 2013, at 15:04, Appa Rao Mulpuri <email@hidden> wrote:
> We have a configuration file that defines a bunch of toggles for various
> features you have pending. The running application then uses these toggles
> in order to decide whether or not to show the new feature.


 The solution is to do those other features on a branch until you're ready to ship, then merge them into a 'shipping' branch.

 Alternately, use a #define TRANSIENT_FEATURE_WHATEVER (DEBUG) and #if TRANSIENT_FEATURE_WHATEVER/#endif // TRANSIENT_FEATURE_WHATEVER to turn this stuff off for release builds and only have it in debug builds.

 Or if you really insist on shipping half-finished code to end users unnecessarily and just turning it off at runtime, use [NSUserDefaults boolForKey: @"MYTransientFeatureWhatever"], as that defaults to NO when it is not set.

-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."




_______________________________________________

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: 
 >Re: Toggle framework in Cocoa (From: Appa Rao Mulpuri <email@hidden>)

  • Prev by Date: Re: Toggle framework in Cocoa
  • Next by Date: AutoLayout and and views not appearing after segues.
  • Previous by thread: Re: Toggle framework in Cocoa
  • Next by thread: Re: Toggle framework in Cocoa
  • Index(es):
    • Date
    • Thread