Re: Weird problem with writeToUrl:ofType:error
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