On Apr 13, 2011, at 9:15 AM, Jeffrey Walton <noloa...@gmail.com> wrote:
> > > Unfortunately, PLAY is not documented [2]. In addition, I can't find a > delegate (as with other controllers) and there are no notifications > covering errors [2]. Finally, the error log is for network streams > [2]. Not sure about the error handling, but MPMoviePlayerController is documented to conform to MPMediaPlayback, the documentation for which describes -play: http://developer.apple.com/library/ios/documentation/mediaplayer/reference/MPMediaPlayback_protocol/Reference/Reference.html#//apple_ref/occ/intfm/MPMediaPlayback/play > More philosophical: why are the APIs so inconsistent? Why is there no > readily apparent way to consistently retrieve error information > (Windows has GetLastError and Linux has errno)? And you've never seen "An error occurred: There was an error (E_SUCCESS)" on Windows, or similar errno stomping on *nix? What UNIX libraries do you regularly use that set errno? Returning errors from the place they happen, or providing a block argument that can act as an error handler, or notifying a delegate object than an error has occurred in an operation it requested before are all vastly superior to the "last failure gets to write an oh-so-descriptive integer to a shared memory location." --Kyle Sluder_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com