On Dec 29, 2011, at 1:27 PM, Jens Alfke wrote:

> Well, show us some code. (I don't have that book you're working from.)
> What is the line that raises the exception? What are the values of variables 
> at that point?

It is the default code from the Document-based application.  It is the @throw 
exception line

- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
{
    /*
     Insert code here to write your document to data of the specified type. If 
outError != NULL, ensure that you create and set an appropriate error when 
returning nil.
    You can also choose to override -fileWrapperOfType:error:, 
-writeToURL:ofType:error:, or 
-writeToURL:ofType:forSaveOperation:originalContentsURL:error: instead.
    */
    NSException *exception = [NSException 
exceptionWithName:@"UnimplementedMethod" reason:[NSString stringWithFormat:@"%@ 
is unimplemented", NSStringFromSelector(_cmd)] userInfo:nil];
    @throw exception;
    return nil;
}


This seems to be being called by
        -[NSDocument writeToURL:ofType:error:]

Except, I'm not doing anything that should prompt the document to be saved. 
Something else is instigating this activity. That is probably what is confusing 
me the most.

Todd

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to