• 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: Weird problem with writeToUrl:ofType:error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird problem with writeToUrl:ofType:error


  • Subject: Re: Weird problem with writeToUrl:ofType:error
  • From: Jean-Nicolas Jolivet <email@hidden>
  • Date: Thu, 15 Nov 2007 16:13:32 -0500

What's weird is that: I only have 1 instance of the NSMutableArray and it is the Instance Variable...

I'm using this code to print the Array count when a button is clicked (subtitles is the name of my instance variable)

- (IBAction)debugPressed:(id)sender {
   NSLog(@"Debug Count: %d", [subtitles count]);
}

and I'm using this code to print the count when saving to file (in writeToUrl):
NSLog(@"Count when saving: %d", [subtitles count]);


Both methods are in the MyDocument class which has the subtitles NSMutableArray...

I just don't see how one can use a different instance of the array :(



Shawn Erickson wrote:
On 11/15/07, Jean-Nicolas Jolivet <email@hidden> wrote:

Any help would be appreciated!

It sure sounds like you are using different array instances. Use the debugger to view address of the array when you modify/access it to understand if and how that is happening.

Don't think we can help much without a sample of code (ideally enough
to reproduce the problem).

-Shawn


_______________________________________________

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: 
 >Weird problem with writeToUrl:ofType:error (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: Weird problem with writeToUrl:ofType:error (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: Scripting Bridge question
  • Next by Date: Re: invalid formatter values
  • Previous by thread: Re: Weird problem with writeToUrl:ofType:error
  • Next by thread: Re: Weird problem with writeToUrl:ofType:error
  • Index(es):
    • Date
    • Thread