| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I just read more about this ObjC +load method. Apparently it executes in a special context that has lots of rules about what you can and can't do, including restrictions on what functions you can call and what objects you can touch. Judging from your experience, I imagine that it is also executing before any C++ static initializers have run which makes what you are trying to do pretty much impossible. You'll need to defer the work until after +load finishes executing.
| References: | |
| >Re: Initializing static C++ class variable in a HAL plugin (From: Stéphane Letz <email@hidden>) | |
| >Re: Initializing static C++ class variable in a HAL plugin (From: Jeff Moore <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.