• 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
multithreading textviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multithreading textviews


  • Subject: multithreading textviews
  • From: Cornelius <email@hidden>
  • Date: Thu, 22 Nov 2001 01:40:09 +0100

Begin forwarded message:

From: Cornelius <email@hidden>
Date: Don Nov 22, 2001 01:18:03 Uhr Europe/Zurich
To: email@hidden
Subject: multithreading textviews

hi all,

i'm new to this list, and being an ecma addict have taken the liberty of using cocoa with java

<ducking behind monitor>


i have (have tried) to write a simple portscanner with java using interface builder

the multithreading seems to work from the commandline but with NSTextView i get this

NSCFString autoreleased with no pool in place - just leaking
2001-11-22 01:12:38.223 CocoaPortScanner2[545] *** _NSAutoreleaseNoPool(): Object 0x3dfbc40 of class NSCFString autoreleased with no pool in place - just leaking
2001-11-22 01:12:38.277 CocoaPortScanner2[545] *** _NSAutoreleaseNoPool(): Object 0x3dfbc60 of class NSCFString autoreleased with no pool in place - just leaking

This is my call to the interface from within the thread

public synchronized void addToOutput(String value) {
output.append(value); // output is a stringbuffer
freeView = (NSTextView)displayViews.objectForKey("free"); // i have my views in a dictionary for transport
freeView.setString(outputFree.toString());
freeView.displayIfNeeded();
}

Basically i don't understand the AutoReleasePool Part

Reading assignments welcome

Thanks

Cornelius


  • Follow-Ups:
    • Re: multithreading textviews
      • From: Drew McCormack <email@hidden>
  • Prev by Date: Re: Clicking dock icon... (Still no luck!)
  • Next by Date: Re: Mutability
  • Previous by thread: programaic truncation for a NSTableColumn cell(s)
  • Next by thread: Re: multithreading textviews
  • Index(es):
    • Date
    • Thread