Re: Object allocation question
Re: Object allocation question
- Subject: Re: Object allocation question
- From: Scott Stevenson <email@hidden>
- Date: Mon, 30 Oct 2006 01:59:11 -0800
Responding to myself...
On Oct 29, 2006, at 10:17 PM, Scott Stevenson wrote:
I remember getting some errors when trying to access the isa
pointer, and I got around it by doing this:
id theObject = class_createInstance(NSClassFromString
(className), sizeof(unsigned));
id objectAlias = theObject;
Forgot to mention the second argument to class_createInstance() would
usually be 0. I had my own reasons for having that extra chuck of
memory there.
- Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden