Re: NSInvocation problem - "NSView not correctly initialized"
Re: NSInvocation problem - "NSView not correctly initialized"
- Subject: Re: NSInvocation problem - "NSView not correctly initialized"
- From: Robert Nikander <email@hidden>
- Date: Mon, 5 Nov 2007 13:17:07 -0500
On Nov 5, 2007, at 12:37 PM, Shawn Erickson wrote:
On 11/5/07, Robert Nikander <email@hidden> wrote:
So what is different about calling through the NSInvocation that
causes the error message?
As a test try sending a retain message to alloced object after each of
the following...
b = [NSButton alloc];
b = objc_msgSend(button_class, alloc_sel);
Doh! Thanks, I think that answers it. It makes sense that
NSInvocation would retain object return values, and is thus unusable
for calling "alloc". I'm used to garbage collection...
Rob
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden