• 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: NSXMLParser frees itself on error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSXMLParser frees itself on error?


  • Subject: Re: NSXMLParser frees itself on error?
  • From: Michael Ash <email@hidden>
  • Date: Fri, 8 May 2009 00:12:45 -0400

On Thu, May 7, 2009 at 11:53 PM, Marcel Weiher <email@hidden> wrote:
>
> On May 7, 2009, at 17:29 , Jeff Johnson wrote:
>
>> On May 7, 2009, at 6:00 PM, Marcel Weiher wrote:
>>
>>>> That's not what I was talking about. I was talking about the possibility
>>>> that the 'owned' caller manually runs the run loop right after it calls the
>>>> delegate callback, so any performSelector: called by the delegate will be
>>>> performed after the delegate callback returns but within the scope of the
>>>> caller. How do you protect against that?
>>>
>>> *I* don't.  It is you who wants these sorts of guarantees and
>>> protections.  I code in ways that don't assume these sorts of protections.
>>
>> How?
>
> Begin forwarded message:
>
>> From: Marcel Weiher <email@hidden>
>> Date: May 7, 2009 10:05:29  PDT
>>
>> And yes, the code that I use explicitly runs the runloop, and it is the
>> code that runs the runloop that both allocates the NSURLConnection and then
>> cleans up after it checks the flag.  Perfectly safe, perfectly synchronous.

And what about the *a*synchronous case?

Mike
_______________________________________________

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: NSXMLParser frees itself on error?
      • From: Marcel Weiher <email@hidden>
References: 
 >NSXMLParser frees itself on error? (From: Mike Manzano <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Marcel Weiher <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Jeff Johnson <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Marcel Weiher <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Jeff Johnson <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Marcel Weiher <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Jeff Johnson <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Marcel Weiher <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Jeff Johnson <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Re: NSXMLParser frees itself on error?
  • Next by Date: Re: Associating Objective-C objects with Java objects using JNI
  • Previous by thread: Re: NSXMLParser frees itself on error?
  • Next by thread: Re: NSXMLParser frees itself on error?
  • Index(es):
    • Date
    • Thread