• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: It doesn't work without the NSLog()... Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >It doesn't work without the NSLog()... Why? (From: Тимофей Даньшин <email@hidden>)

  • Prev by Date: It doesn't work without the NSLog()... Why?
  • Next by Date: Re: It doesn't work without the NSLog()... Why?
  • Previous by thread: It doesn't work without the NSLog()... Why?
  • Next by thread: Re: It doesn't work without the NSLog()... Why?
  • Index(es):
    • Date
    • Thread