• 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 17:21:21 -0500

Using the following:
NSLog(@"Debug Count: %d, Object: %@", [subtitles count], subtitles);
Both when saving, and when adding/deleting stuff from the array... I was able to see that the addresses of the objects in my array are different...so it really is a different instance... Now the thing is.. how could this happen!.. My code is pretty simple and straightforward and should all be using the same instance variable (the Mutable Array) that belongs to the MyDocument class... it's as if a different instance of MyDocument was actually doing the saving... how is this possible?



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


  • Follow-Ups:
    • Re: Weird problem with writeToUrl:ofType:error
      • From: Jean-Nicolas Jolivet <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: What is "CFBundleTypeName"?
  • Previous by thread: Re: Weird problem with writeToUrl:ofType:error
  • Next by thread: Re: Weird problem with writeToUrl:ofType:error
  • Index(es):
    • Date
    • Thread