I want to create some class generator with dependencies of user action. For example,
- every time I create a new
CoreData Entityclass I want to create a category class for it with some content already. - Every time i create a sublass of existing class i want some method to be appear in
.mfile already (likedrawInRect:when you create a newUIViewsublass.
Example (.h)
@interface MyFavouriteClassSubclass : MyFavouriteClass
(.m):
@implementation MyFavouriteClassSubclass
-(void)someMethodInMyParentClass {
[super someMethodInMyParentClass];
}
Can that be done?
I was think about some shell script to achive that, but the problem with it, that I already need to have a file, and it can run as a cronjob. I don't think is a good aproach for that.
Aucun commentaire:
Enregistrer un commentaire