Challenge can't load (and save ?)


Here is my code :

- (NSData *)dataOfType:(NSString *)typeName error:(NSError *__autoreleasing *)outError
    NSLog(@"Document dataOfType");
    return ([NSKeyedArchiver archivedDataWithRootObject:ovalArray]);
- (BOOL) readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError *__autoreleasing *)outError
    NSLog(@"Document readFromData");
    ovalArray = [NSKeyedUnarchiver unarchiveObjectWithData:data] ;
    [ovalView setNeedsDisplay:YES] ;
    return YES ;
+ (BOOL)autosavesInPlace
    return YES;

The file’s owner has a correspondance outlet with the ovalView.

When I try to save and restore, I have no print of NSLog and obviously, no oval in the window …
The size of the created file is always of 1062 bytes.

I definitely prefer an IDE like netbean for java !
Why ? becasue I can see the generated code and understand what is wrong in my code.
With xcode, I can’t compare with the solution, if I miss a binding or something else. It’s necessary to spend hour to find, if we can, the error.
Grrrr !

But I will appreciate any idea, for my problem. I’m sure, it’s something stupid, but I already spent 2 hours on it and I’m tired.
As my code seems very similar to the one of the proposed solution, I suppose that my problem reside in the “magic” part of xcode, the part I can’t visit.
Maybe, you can give me the mice or keyboard manipulation related to the save/restore functionnality.
Maybe, there is something todo that the file’s owner correspondance outlet with the ovalView ?

Thank you for your help.

[EDIT] one day later, i’m always stuck on this problem.