• 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: Puzzling run loop/autorelease pool question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Puzzling run loop/autorelease pool question


  • Subject: Re: Puzzling run loop/autorelease pool question
  • From: Chris Suter <email@hidden>
  • Date: Mon, 6 Apr 2009 09:56:46 +1000

Hi Michael,

On Mon, Apr 6, 2009 at 9:50 AM, Michael Ash <email@hidden> wrote:
> On Sun, Apr 5, 2009 at 5:11 PM, m <email@hidden> wrote:

> The workaround is easy. What you're doing is fine, or you can post a
> fake NSEvent, or something similar. Pretty much up to you.

Whilst that approach will probably work for ever, I still think you're
better off wrapping your C callbacks with your own NSAutoreleasePool;
nothing really guarantees that an autorelease pool will exist when
you're in a C callback that you've added directly to the runloop via a
C interface.

Regards,

Chris
_______________________________________________

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: Puzzling run loop/autorelease pool question
      • From: m <email@hidden>
References: 
 >Puzzling run loop/autorelease pool question (From: m <email@hidden>)
 >Re: Puzzling run loop/autorelease pool question (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: IB 3.1 Panel Has Maximum Size funky - workaround?
  • Next by Date: Re: Non-pageable app
  • Previous by thread: Re: Puzzling run loop/autorelease pool question
  • Next by thread: Re: Puzzling run loop/autorelease pool question
  • Index(es):
    • Date
    • Thread