> I'm not sure what your view is trying to do. It looks like you're emitting 
> key/value pairs where the key is the text of the comment, but that doesn't 
> make sense as a key. Can you describe what your goal is?

Sure. I'm using the array of keys for a table view. (In the actual app, there 
are a few more fields I export). I use a related CQLLiveQuery in a 
nstableviewdatasource. I just pull in the keys for the items in the 
tableviewcell instead of having to load the model for every row. Similar to:
- (NSView *)tableView:(NSTableView *)tableView 
viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
    CBLQueryRow *thisRow = [self.queryEnumerator rowAtIndex:row];
    NSString *text = [thisRow keyAtIndex:0];
    id newView = [tableView makeViewWithIdentifier:tableColumn.identifier 
owner:self];
    id textView = [newView viewWithTag:3002];
   [textView setStringValue:text];
  ...
}
It may be a premature optimization, but it seemed more direct. Would you 
recommend another solution? 

Thanks.

-- 
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/92BDC2BF-E9F8-43AD-81B4-D9EFA15D0C72%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to