Re: [Pyobjc-dev] issues with NSURL and NSWindow?
Brought to you by:
ronaldoussoren
From: b.bum <bb...@ma...> - 2004-04-05 04:05:40
|
On Apr 4, 2004, at 8:59 PM, Bob Ippolito wrote: > It's releasing something that was alloc'ed but not init'ed. It > probably should bus error. I'm not sure how we are supposed to catch > that anyway? I guess we would have to keep track to see if it was > alloc'ed but not initialized, and then send it dealloc instead of > release. > > This gets a bus error too, btw: > #import <Foundation/Foundation.h> > > int main (int argc, char **argv) { > NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; > NSURL *url; > url = [NSURL alloc]; > [url release]; > [pool release]; > } That is a symptom of an earlier failure. The fact the PyObjC is attempting to send initWithString instead of initWithString: is the root cause (or else initWithString: wouldn't work, would it?). Can we catch the attempt to invoke a method that does not exist? b.bum |