• 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: Manually installing an autorelease pool for NSEvents?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manually installing an autorelease pool for NSEvents?


  • Subject: Re: Manually installing an autorelease pool for NSEvents?
  • From: Jörn Salewski <email@hidden>
  • Date: Mon, 02 Feb 2004 01:56:29 +0100

am 02.02.2004 1:18 Uhr schrieb Chilton Webb unter email@hidden:

> Hi,
>
> I'm trying to track down a Cocoa bundle issue, and one theory put forth
> so far is that Cocoa is not installing an autorelease pool for
> NSEvents.

NSEvents do not need their own NSAutoreleasePool, each NSThread does.

> Would it be possible to do this manually?

Yes, of course. Just embrace everything else that happens in your thread
with

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

// do whatever you want to do inside your thread

[pool release];

>
> Thanks,
> -Chilton
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Manually installing an autorelease pool for NSEvents?
      • From: Chilton Webb <email@hidden>
References: 
 >Manually installing an autorelease pool for NSEvents? (From: Chilton Webb <email@hidden>)

  • Prev by Date: Manually installing an autorelease pool for NSEvents?
  • Next by Date: Re: Manually installing an autorelease pool for NSEvents?
  • Previous by thread: Manually installing an autorelease pool for NSEvents?
  • Next by thread: Re: Manually installing an autorelease pool for NSEvents?
  • Index(es):
    • Date
    • Thread