Files
RestKit/Examples/RKDiscussionBoardExample/DiscussionBoard/Code/Other/DBEnvironment.h
Jeremy Ellison b20b78e57f Use delegate pattern for canceled login.
Move isNewRecord to model level.
Create rkcurl script.
2011-01-20 11:49:02 -05:00

33 lines
1.1 KiB
C

//
// DBEnvironment.h
// DiscussionBoard
//
// Created by Daniel Hammond on 1/7/11.
// Copyright 2011 Two Toasters. All rights reserved.
//
/**
* The Base URL constant. This Base URL is used to initialize RestKit via RKClient
* or RKObjectManager (which in turn initializes an instance of RKClient). The Base
* URL is used to build full URL's by appending a resource path onto the end.
*
* By abstracting your Base URL into an externally defined constant and utilizing
* conditional compilation, you can very quickly switch between server environments
* and produce builds targetted at different backend systems.
*/
extern NSString* const DBRestKitBaseURL;
// TODO: See if we can eliminate or abstract this further
extern NSString* const kObjectCreatedUpdatedOrDestroyedNotificationName;
/**
* Server Environments for conditional compilation
*/
#define DB_ENVIRONMENT_DEVELOPMENT 0
#define DB_ENVIRONMENT_STAGING 1
#define DB_ENVIRONMENT_PRODUCTION 2
// Use Production by default
#ifndef DB_ENVIRONMENT
#define DB_ENVIRONMENT DB_ENVIRONMENT_PRODUCTION
#endif