Skip navigation.
 
mlReturning an error within a scriptcommand
FROM : Olivier
DATE : Wed Nov 13 18:29:12 2002

I have implemented scripting within my app and now i would like to
return valuable information when an error is encountered during a
script execution to allow for better debugging of script. My problem is
that i have no idea of how to return an error.

For exemple in a get command if i ask for an item that is out of bound,
how do i return that error

using keyvalue coding the method will look like, right now it returns
nil if the object isn't found, how can i return my own error

-(id)valueInCellsAtIndex:(unsigned)index
{
    id returnValue = [[[Cell alloc] initWithRowIndex:index
columnIndex:0 container: self] autorelease];

    return returnValue;
}


Olivier
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
No related mails found.