• 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
Callbacks and autorelease pools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Callbacks and autorelease pools


  • Subject: Callbacks and autorelease pools
  • From: Stefan Pantos <email@hidden>
  • Date: Mon, 22 Sep 2003 20:18:38 +0100

Hi,
I want to get hold of all the Neighborhoods and computers on the network. I know that I can use NSL in the Carbon library to do this. I want to make the GUI using Cocoa. Is there another library in Cocoa which will do the same as NSL?

If there isn't then. The NSL library works using callback. I want to add something to an NSArray in the callback. This means I need to use a Obj-C wrapper. The wrapper needs allocating but it doesn't like the NSArray because it has no autorelease pool being a call from NSL. How do I fix/get round this?

At least this is what I think the error "2003-09-22 19:43:11.933 MyProgram[12932] *** _NSAutoreleaseNoPool(): Object 0x321260 of class NeighborhoodWrap autoreleased with no pool in place - just leaking" means.

Thanks,
Stefan
_______________________________________________
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: Callbacks and autorelease pools
      • From: Dave Camp <email@hidden>
    • Re: Callbacks and autorelease pools
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Declaring large (but not that large) array causes crash?
  • Next by Date: Re: Objective-C Question
  • Previous by thread: Re: Declaring large (but not that large) array causes crash?
  • Next by thread: Re: Callbacks and autorelease pools
  • Index(es):
    • Date
    • Thread