I am trying to subclass NSNotification. Apple\'s docs for NSNotificationstate the followi开发者_开发问答ng:
Ordinarily, being a good Cocoa citizen, I write my initializers returning type id (i.e. pointer to generic object) for easier subclassing later (though 99% of time I do not need that).
I am trying to subclass NSArray, but it crashes the app when trying to开发者_StackOverflow access the count method. I know that NSArray is aclass cluster.
I would like to create an abstract class which will create concrete instances depending on initialization parameter. Example:
My iPhone app has an abstract class WorkingView.It is a subclass of UIView.WorkingView will in turn have a bunch of concrete subclasses.Two of those will be SimplifyView and MultiplyView.
Why am I getting an \"out of scope\" error whenever I try to access the \"url\" variable in this loop?
I was reading 开发者_如何学编程that NSArray is just such a thing. Sounds heavy. I have 7 really fat books here on my desk about Objective-C, Cocoa and C. None of them mention Class Cluster at all, at