• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: RaiseMan Exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RaiseMan Exception


  • Subject: Re: RaiseMan Exception
  • From: Todd Heberlein <email@hidden>
  • Date: Thu, 29 Dec 2011 13:39:54 -0800

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@hidden)

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:

This email sent to email@hidden

References: 
 >RaiseMan Exception (From: Todd Heberlein <email@hidden>)
 >Re: RaiseMan Exception (From: Todd Heberlein <email@hidden>)
 >Re: RaiseMan Exception (From: Todd Heberlein <email@hidden>)
 >Re: RaiseMan Exception (From: Jens Alfke <email@hidden>)

  • Prev by Date: Code error in Your First Mac App tutorial..
  • Next by Date: Re: Template Images in Table Cells
  • Previous by thread: Re: RaiseMan Exception
  • Next by thread: Re: RaiseMan Exception
  • Index(es):
    • Date
    • Thread