• 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
Re: Object allocation question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Object allocation question (From: "Michael Latta" <email@hidden>)
 >Re: Object allocation question (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Scrolling Text Algorithm for a Screen Saver
  • Next by Date: Re: Scrolling Text Algorithm for a Screen Saver
  • Previous by thread: Re: Object allocation question
  • Next by thread: Export resolution of an Image
  • Index(es):
    • Date
    • Thread