Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am going throught the docs.... #154

Closed
vinceyoumans opened this issue Oct 10, 2013 · 1 comment
Closed

I am going throught the docs.... #154

vinceyoumans opened this issue Oct 10, 2013 · 1 comment

Comments

@vinceyoumans
Copy link

and I am running into a problem...

I document my issues in the code...

//
// AppDelegate.m
// cblite02
//
// Created by vy on 10/10/13.
// Copyright (c) 2013 vy. All rights reserved.
//

import "AppDelegate.h"

@implementation AppDelegate

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
    // Override point for customization after application launch.

    //VY 03
    // some other crap to load

    // vy - create a shared instance of CBLManager
    CBLManager *manager = [CBLManager sharedInstance];

    // create a database
    NSError *error;

    //!!!!!!!!!!!!!!!!!!! the next LINE will CRASH !!!!!!!!!!!!!!!!!
    // this is where the app crashes... I am thinking that perhaps it can not createDataBaseNamed , perhaps I need to have this DB vydb02 already... or perhaps I have a syntax error... but this is the bug line... I was trying to follow along with your online documentation...
    ///http://docs.couchbase.com/couchbase-lite/cbl-ios/#connecting-to-an-existing-database
    self.database = [manager createDatabaseNamed:@"vydb02" error:&error];
    // In short... you asked for some feed back...

    //You should also add appropriate error checking code after each call.
    //If either call fails, you might need to display an error message and exit.

    //The legal characters for the database name are:
    //lowercase letters [a-z], digits [0-9], and special characters [$_()+-/].

    return YES;
    }

@tleyden
Copy link
Contributor

tleyden commented Oct 10, 2013

Closing as duplicate of #153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants