Re: It doesn't work without the NSLog()... Why?
Re: It doesn't work without the NSLog()... Why?
- Subject: Re: It doesn't work without the NSLog()... Why?
- From: Kyle Sluder <email@hidden>
- Date: Wed, 29 Apr 2009 08:25:48 -0400
2009/4/29 Тимофей Даньшин <email@hidden>:
> 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?
No, there is no sane reason for this behavior. Though I remember
reading a story very recently somewhere in which someone had this
exact issue, and it had to do with the way that NSLog left the stack
when it completed.
You probably have a memory management or other issue somewhere,
perhaps in wherever is calling -selectWordsBeginningWith:. But you
haven't posted nearly enough code to make even an educated guess. You
need to post the code for
-intoArray:addItemFromTable:usingStatement:andSearchString: at the
very least.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden