Re: Toggle framework in Cocoa
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