On Mar 4, 2014, at 1:11 PM, Todd Freese <[email protected]> wrote:

> self.dataSource.query.descending = YES;
> self.dataSource.query = [Job queryJobsInDatabase:database].asLiveQuery;

If the statements really are in that order, I'm not surprised the first one has 
no effect ;-)

Actually, even if you swap the lines, it's not going to work. Setting the 
dataSource's query property will make it start running the query, and after 
that happens it's too late to change the options. The right way to set it up is 
something like
        CBLLiveQuery* query = [view createQuery].asLiveQuery;
        query.descending = YES;
        self.dataSource.query = query;

--Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/CCBF5BDA-D78D-4F8D-87E6-03B415AB7AA5%40couchbase.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to