• 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: Strange problem of first access to variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange problem of first access to variable


  • Subject: Re: Strange problem of first access to variable
  • From: Vera Tkachenko <email@hidden>
  • Date: Wed, 7 Jan 2009 15:28:58 +0200

Graham,

thanks for the quick reply.
I agree that the problem isn't solved correctly by using NSLog - this is just the only method found by me to solve issue. I just thought that symptoms of the problem (need to access variable before it can be used normally) is known.
files passed to processFiles is obtained using [filesController selectedObjects], where filesController is of type NSArrayController.


7 Січ 2009, в 15:05, Graham Cox написал(а):


On 7 Jan 2009, at 11:58 pm, Vera Tkachenko wrote:

Could you point me where to find the answer - smth with incorrect "files" variable initialization/declaration? Have no idea what's wrong.


There's no way to answer this with the information given.

Since <files> is passed in to your method, the problem is likely to lie with where it has come from. It sounds to me like the NSLog issue is not the cause of the problem, at least in this location. Who creates the array or where do you get it? Show us that bit.

--Graham





-- With regards, Vera Tkachenko
[email@hidden]
[ICQ#230923300]
[web http://vera.org.ua]





_______________________________________________

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: 
 >Strange problem of first access to variable (From: Vera Tkachenko <email@hidden>)
 >Re: Strange problem of first access to variable (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Maintaining mutable values with NSDictionaryControllerKeyValuePair
  • Next by Date: Re: Programmatically locking user screen
  • Previous by thread: Re: Strange problem of first access to variable
  • Next by thread: Re: Strange problem of first access to variable
  • Index(es):
    • Date
    • Thread