|
Revision 162, 138 bytes
(checked in by rentzsch, 2 years ago)
|
mogenerator 1.0.2:
[FIX] Johan Kool pointed out if you had a custom superentity and weren't using a custom base class (-baseClass option), a necessary #import of the superentity's header file wasn't being generated. Fixed with Johan's code+template patch.
[FIX] Mason Mark pointed out an Apple design recommendation for unsupported persistent attribute types:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdNSAttributes.html>
mogenerator generated incorrect code for attributes with an undefined type (NSUndefinedAttributeType) like this:
- (*)content;
- (void)setContent:(*)value_;
Fixed with Mason's code+template patch: code is no longer generated for attributes with an undefined type. mogeneratorTestMule includes a hairColor/hairColorStorage example to test this case now.
[NEW] Add mogeneratorTestMule. The project+model is handy for testing mogenerator, and there's no reason to keep it to myself.
[CHANGE] No longer generate validation methods. They were always empty, so they just added code bloat. The only nice thing about them is that they wrote the validator method signature for you, so I keep the declaration in the machine .h file but comment it out.
|
| Line | |
|---|
| 1 |
#import <Cocoa/Cocoa.h> |
|---|
| 2 |
|
|---|
| 3 |
@interface MyBaseClass : NSManagedObject { |
|---|
| 4 |
double ivar; |
|---|
| 5 |
} |
|---|
| 6 |
|
|---|
| 7 |
- (double)ivar; |
|---|
| 8 |
- (void)setIvar:(double)ivar_; |
|---|
| 9 |
|
|---|
| 10 |
@end |
|---|