FROM : Keith Blount
DATE : Wed Nov 24 19:14:03 2004
Many thanks for replying again. I followed all of your
advice and used NSApp's detachDrawingThread:... method
as you suggested, and now everything works perfectly.
Thanks for taking the time to help me, it would have
taken me ages to figure this out for myself.
Thanks again and all the best,
Keith
--- Nick Zitzmann <<email_removed>> wrote:
>
> On Nov 23, 2004, at 4:29 PM, Keith Blount wrote:
>
> > Thank you very much again for your repy. I haven't
> had
> > much success yet (keep getting lots of curious
> leaks
> > when I try it)
>
> That's because, when you make your own thread, you
> need to create your
> own catch-all autorelease pool for the thread. Or
> use NSApplication's
> thread detaching method,
> +detachDrawingThread:toTarget:withObject:,
> which has the same functionality as the one in
> NSThread except that it
> creates an autorelease pool for you. See the
> NSAutoreleasePool docs for
> details.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
DATE : Wed Nov 24 19:14:03 2004
Many thanks for replying again. I followed all of your
advice and used NSApp's detachDrawingThread:... method
as you suggested, and now everything works perfectly.
Thanks for taking the time to help me, it would have
taken me ages to figure this out for myself.
Thanks again and all the best,
Keith
--- Nick Zitzmann <<email_removed>> wrote:
>
> On Nov 23, 2004, at 4:29 PM, Keith Blount wrote:
>
> > Thank you very much again for your repy. I haven't
> had
> > much success yet (keep getting lots of curious
> leaks
> > when I try it)
>
> That's because, when you make your own thread, you
> need to create your
> own catch-all autorelease pool for the thread. Or
> use NSApplication's
> thread detaching method,
> +detachDrawingThread:toTarget:withObject:,
> which has the same functionality as the one in
> NSThread except that it
> creates an autorelease pool for you. See the
> NSAutoreleasePool docs for
> details.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
| Related mails | Author | Date |
|---|---|---|
| Keith Blount | Nov 23, 20:09 | |
| Nick Zitzmann | Nov 23, 20:19 | |
| Keith Blount | Nov 23, 22:17 | |
| Nick Zitzmann | Nov 23, 22:56 | |
| Keith Blount | Nov 24, 00:29 | |
| Nick Zitzmann | Nov 24, 00:40 | |
| Keith Blount | Nov 24, 19:14 |






Cocoa mail archive

