Hello.
It's a very funny thing. And i do hope i am not bonkers. But the following code works fine until i delete the line with "NSLog(....)". In the latter case it just returns an empty array. Are there any sane reasons why that can happen?

- (NSArray *) selectWordsBeginningWith:(NSString *) s {
        
NSLog(@"We do call SelectWordsBeginningWith...."); //<- here is that line.
        NSString *searchString = [NSString stringWithFormat:@"%...@%@", s, 
@"%%"];
        NSMutableArray *mutableRet = [[NSMutableArray alloc]init];

[self intoArray:mutableRet addItemFromTable:@"english" usingStatement:readEnglish andSearchString:searchString]; [self intoArray:mutableRet addItemFromTable:@"russian" usingStatement:readRussian andSearchString:searchString];

        sqlite3_reset(readEnglish);
        sqlite3_reset(readRussian);
        NSArray *ret = [mutableRet copy];
//      NSLog(@"The number of items to be returned is: %i", [ret count]);
        [mutableRet release];
        return ret;
}

Thank you in advance,
Timofey.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to