| ichasemyshadow ( @ 2008-11-01 23:11:00 |
| Current location: | Red Floors |
| Current mood: | |
| Entry tags: | objc, objectivec |
Complete ObjectiveC Confusion
Spent 2 hours playing with a simple interface/implementation model, and the only thing I realized is... Objective-C is AAARGH. Why is it so difficult to implement objects?
I was not able to simply declare an interface class, then implementation, and instantiate with [MyClass new]. Whaaa, eeeh, NAAAAAAA? mew. The problem is that I wasn't extending the GNU Object class, but why should I? Why is that necessary?
Personally, this has turned me off, because I shouldn't be required to extend classes I didn't write. Perhaps I'm doing it wrong, but I wasn't able to manually allocate/instatiate an object either using malloc, etc.
Who knows....