Re: Puzzling run loop/autorelease pool question
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