LLVM clearly is able to implement simple subclassing correctly. Thousands of programs use it every day, so this is not a problem to be worked around if you are writing standard code (not trying anything tricky or undocumented). Here are the things you should do.
LLVM clearly is able to implement simple subclassing correctly. Thousands of programs use it every day, so this is not a problem to be worked around if you are writing standard code (not trying anything tricky or undocumented). Here are the things you should do: Reboot.
Xcode pretends that you don't have to reboot after install. You do in my experience. It solves 90% of problems after upgrading Xcode.
Clean and rebuild. This is less likely to fix it because going from 3.2 to 4.2 puts the derived files in completely different places anyway. But it's worth trying.
Check self class to make sure you really are what you think you are. Verify that you never mess with the isa pointer (easy to find; search for ->isa in your code). Check your init.
This is the most likely place to have done something over-tricky. Make sure you're following the simple patterns. Derive the simplest form of the problem and post some code that demonstrates it.
From your description, this should be possible to do in very few lines of code. Attempting to create this simplified version will more often than not show you where your mistake is.
Thanks a lot Rob. I'll try these things. For the fancy parts: All I did is above in my updated question.No method swizzling, no tricks.
– dontWatchMyProfile Oct 16 at 23:06 After cleaning, rebooting and building again the problem disappeared! – dontWatchMyProfile Oct 16 at 23:39.
If the compiler screwed up something so basic, the system wouldn't boot. Assert the class in your init method because either you have an instance of TheSuperclass or something is misspelled.
The term is "override", not "overwrite". You haven't shown us enough of your code to know what the problem is. Show us the -init methods for both classes, and show us where your instance of the subclass is being created.
– dontWatchMyProfile Oct 16 at 22:48 btw, thanks for the wording correction. I always confuse override with overwrite. Not a native English speaker.
– dontWatchMyProfile Oct 16 at 23:12 How does a comment get two upvotes? – JustSid Oct 17 at 0:08.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.