[baseten-users] Context objectWithID: (BXDatabaseObjectID ∗) anID

Michael Ruepp michael at ruepp.at
Fri Mar 5 13:32:39 EET 2010


Hi there,

why is objectWithID: (BXDatabaseObjectID ∗) anID error: (NSError ∗∗) error method raising an Error when object is not found in database?

It would be much more convenient to return nil then. Actually, when I call that method without proper error handling with ObjectID not existing, i receive a Sigabrt.

If it would return nil, some easy if object exist clauses could be made, like if ([context objectWithID:anID]) { etc....

Thanks,

Mike



_________________
michael ruepp
michael at ruepp.at
fon +41 76 593 04 49
skype michaelruepp

CONFIDENTIALITY NOTICE 
This message (including any attachments transmitted with it) contains confidential information and is intended only for the individual named herein. If you are not the herein named addressee you should not disseminate, distribute, copy or otherwise make use of this message. Please notify the sender immediately by e-mail if you have received this message by mistake, and delete it from your systems.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basetenframework.org/pipermail/baseten-users/attachments/20100305/477ac5b2/attachment.htm>


More information about the baseten-users mailing list