• 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: Method Sees Populated Array As Empty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Method Sees Populated Array As Empty


  • Subject: Re: Method Sees Populated Array As Empty
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sun, 6 Jul 2008 13:10:53 +0200

Try NSLog(@"%@", self) and make sure your are working with the same document instance and not with two distincs documents objects (one with a full array and one with an empty array).

Le 6 juil. 08 à 12:26, Mark Wales a écrit :

Do you actually have an accessor method for arrayOfReferences?

Yes, there is one. I didn't copy the full code in, but there is a synthesised setter for arrayOfReferences. I tried doing it manually too and added an NSLog in there. Again the array only came up as empty when called from that one method. It's very strange indeed: it is as if the array goes blank just for that method – but i don't know what could cause that to happen – it's just a mutable array that I'm adding objects too. I'm I missing something basic? I don't see how it could work in every other method but not that one. I'm flummoxed.


Mark






_______________________________________________

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


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: Method Sees Populated Array As Empty
      • From: Mark Wales <email@hidden>
References: 
 >Method Sees Populated Array As Empty (From: Mark Wales <email@hidden>)
 >Re: Method Sees Populated Array As Empty (From: Markus Spoettl <email@hidden>)
 >Re: Method Sees Populated Array As Empty (From: Mark Wales <email@hidden>)
 >Re: Method Sees Populated Array As Empty (From: Graham Cox <email@hidden>)
 >Re: Method Sees Populated Array As Empty (From: Mark Wales <email@hidden>)

  • Prev by Date: Re: Method Sees Populated Array As Empty
  • Next by Date: Re: Method Sees Populated Array As Empty
  • Previous by thread: Re: Method Sees Populated Array As Empty
  • Next by thread: Re: Method Sees Populated Array As Empty
  • Index(es):
    • Date
    • Thread