... not sure if this is a KVO or a Core Audio problem with my code

2008-11-28 Thread John Zorko
Hello, all ... I'm experiencing a hang in my app when I do things too quickly. When I pause the app and examine the callstack, I see this: #0 0x31467b18 in semaphore_timedwait_signal_trap () #1 0x3145e984 in semaphore_timedwait_signal () #2 0x3145b104 in _pthread_cond_wait () #3

NSKVODeallocateBreak?

2008-11-18 Thread John Zorko
Hello, all ... My app is hitting this breakpoint, and I don't know what it means (and there is no stack frame in the call stack that lives in my source, so while I can make a good guess about where it's happening, i'm not 100% sure). What n00b mistake causes this breakpoint to be hit?

another n00b question -- addObserver weirdness

2008-11-11 Thread John Zorko
Hello, all ... I'm experiencing weird issues with addObserver / removeObserver. I log when I add observers, as well as when I try to remove them, but I sometimes (not always) get an exception when I remove an observer: 2008-11-11 10:05:49.939 Magnatune[1382:20b] creating and starting

another n00b question -- how to find a memory leak

2008-10-22 Thread John Zorko
Hello, all ... I've found a few leaks in my app using Instruments, and it works well, but i've this message that appears in the console window when I run the app under XCode, and i'm not sure how to find the cause: 2008-10-22 13:06:57.998 Magnatune[1956:dc23] *** _NSAutoreleaseNoPool():

Re: another n00b question -- how to find a memory leak

2008-10-22 Thread John Zorko
Bill, Alas, I found it 10 minutes after I posted the message *sigh* ... I forgot the autorelease pool in my override of - observeValueForKeyPath:ofObject:change:contet: ... the console message is gone now :-) Many thanks anyway, though! Do this in your callback: {

Re: another n00b question -- how to find a memory leak

2008-10-22 Thread John Zorko
make sure _anything_ that happens in this KVO handler is dispatched to the main thread in that way? On Oct 22, 2008, at 2:00 PM, Shawn Erickson wrote: On Wed, Oct 22, 2008 at 1:46 PM, John Zorko [EMAIL PROTECTED] wrote: Bill, Alas, I found it 10 minutes after I posted the message *sigh

EXC_BAD_ACCESS with NSAutoReleasePool, NSThread and NSThreadWillExitNotification

2008-10-14 Thread John Zorko
Hello, all ... I'm experiencing a crash after a thread exits. Program received signal: “EXC_BAD_ACCESS”. (gdb) bt #0 0x300c8c18 in objc_msgSend () #1 0x3067073a in NSPopAutoreleasePool () #2 0x306770ea in __NSFinalizeThreadData () #3 0x31446f6e in _pthread_tsd_cleanup () #4 0x31449ae4 in

Re: EXC_BAD_ACCESS with NSAutoReleasePool, NSThread and NSThreadWillExitNotification

2008-10-14 Thread John Zorko
:38 PM, John Zorko [EMAIL PROTECTED] wrote: Hello, all ... I'm experiencing a crash after a thread exits. Program received signal: EXC_BAD_ACCESS. (gdb) bt #0 0x300c8c18 in objc_msgSend () #1 0x3067073a in NSPopAutoreleasePool () #2 0x306770ea in __NSFinalizeThreadData () #3 0x31446f6e

waiting for an NSThread

2008-10-12 Thread John Zorko
Hello, all ... I've another n00b Cocoa question: How can I wait for a thread to finish without depending on a flag that may be reset and set before the thread i'm waiting for has time to check it? For instance, in Win32 (i'm not saying Win32 is the best, it's just what i've the most

NSURLConnection question

2008-10-11 Thread John Zorko
Hello, all ... I want to alter how often NSURLConnection calls receivedData -- or rather, I want it to call it more often (even with fewer bytes) vs less often (with loads and loads of bytes). Can I do this with NSURLConnection or some other CF class, rather than have to go down to

silly event question 'cuz i'm a n00b

2008-10-08 Thread John Zorko
Hello, all ... If a certain flag is set, my app needs to advance to the next item in a list to process it when the previous item is done. However, I want the user to still be able to stop it, so I don't want to hang the UI. In effect, if this flag is set, I want the app to act as if the

YAY!!

2008-10-01 Thread John Zorko
FINALLY! Regards, John, quite happy that the NDA is gone -- oh so gone :-) Falling You - exploring the beauty of voice and sound http://www.fallingyou.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

NSMutableString question

2008-09-16 Thread John Zorko
Hello, all ... I've another simple ObjC question that I hope someone can answer -- this has to do with memory management and NSMutableString. If I do this: NSString *str = [NSMutableString string]; ... what is the best way to reclaim that space? Do I do [str release] (no alloc was

Audio Queue Services example?

2008-08-18 Thread John Zorko
Hello, all ... I need to play an MP3 stream from a server in ObjC, so i'm looking at the Audio Queue services API. I see examples of streaming from a file, but I don't know how to feed the queue when i'm streaming from a TCP port. Can someone point me to an example / tell me what API to

re: SOAP server framework

2008-07-13 Thread John Zorko
Stefan, Though it's not ObjC, i've used gSOAP in several projects for SOAP clients and servers. If you have a WSDL, it will generate either a C or C++ interface (your choice) from it. Otherwise, it will generate the WSDL given a header file that you define. Regards, John Falling You

the 11th can't come soon enough :-)

2008-07-10 Thread John Zorko
... s many questions I have, mostly to do with media APIs. I'm bursting at the seams with inquiries, and I look very forward to being able to discuss them with others :-) Regards, John Falling You - exploring the beauty of voice and sound http://www.fallingyou.com