{"action":"created","issue":{"url":"https://api.github.com/repos/Hotel-Reservation-Service/HRSCustomErrorHandling/issues/8","labels_url":"https://api.github.com/repos/Hotel-Reservation-Service/HRSCustomErrorHandling/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Hotel-Reservation-Service/HRSCustomErrorHandling/issues/8/comments","events_url":"https://api.github.com/repos/Hotel-Reservation-Service/HRSCustomErrorHandling/issues/8/events","html_url":"https://github.com/Hotel-Reservation-Service/HRSCustomErrorHandling/issues/8","id":112631133,"number":8,"title":"Why use `NSLocalizedFailureReason` for the title and not `NSLocalizedDescription`?","user":{"login":"JoachimK","id":3660652,"avatar_url":"https://avatars.githubusercontent.com/u/3660652?v=3","gravatar_id":"","url":"https://api.github.com/users/JoachimK","html_url":"https://github.com/JoachimK","followers_url":"https://api.github.com/users/JoachimK/followers","following_url":"https://api.github.com/users/JoachimK/following{/other_user}","gists_url":"https://api.github.com/users/JoachimK/gists{/gist_id}","starred_url":"https://api.github.com/users/JoachimK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoachimK/subscriptions","organizations_url":"https://api.github.com/users/JoachimK/orgs","repos_url":"https://api.github.com/users/JoachimK/repos","events_url":"https://api.github.com/users/JoachimK/events{/privacy}","received_events_url":"https://api.github.com/users/JoachimK/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Hotel-Reservation-Service/HRSCustomErrorHandling/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"michaelochs","id":1901926,"avatar_url":"https://avatars.githubusercontent.com/u/1901926?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelochs","html_url":"https://github.com/michaelochs","followers_url":"https://api.github.com/users/michaelochs/followers","following_url":"https://api.github.com/users/michaelochs/following{/other_user}","gists_url":"https://api.github.com/users/michaelochs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelochs/subscriptions","organizations_url":"https://api.github.com/users/michaelochs/orgs","repos_url":"https://api.github.com/users/michaelochs/repos","events_url":"https://api.github.com/users/michaelochs/events{/privacy}","received_events_url":"https://api.github.com/users/michaelochs/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-10-21T16:41:45Z","updated_at":"2015-12-10T13:16:05Z","closed_at":null,"body":"Something I have meant to ask you for a long time: Why did you choose to use `NSLocalizedFailureReasonKey` for the alerts title by default, why not `NSLocalizedDescriptionKey`?\r\n\r\nAs far as I can tell this is what the NSAlertPanel on OS X does:\r\n\r\n* Use `localizedDescription` for the title\r\n* Use `localizedRecoverySuggestion` as the informative text\r\n* Use `localizedRecoveryOptions` for the button titles\r\n* Ignore `localizedFailureReason` *(Although I would have sworn it would be shown in a paragraph before the recovery suggestion, but apparently it's not)*\r\n\r\nSo you are almost doing the same thing, but using `failureReason` differently. The added advantage of using the `localizedDescription` would be that many errors already have it set because it is auto-generated from error information if not provided in the userInfo dictionary.\r\n\r\nIs that something that you could (and would be willing to) change (considering the library is still in it's `0.x` stage)? It's the main reason preventing me from using it more often and I would be happy to implement it. ^^"},"comment":{"url":"https://api.github.com/repos/Hotel-Reservation-Service/HRSCustomErrorHandling/issues/comments/163611270","html_url":"https://github.com/Hotel-Reservation-Service/HRSCustomErrorHandling/issues/8#issuecomment-163611270","issue_url":"https://api.github.com/repos/Hotel-Reservation-Service/HRSCustomErrorHandling/issues/8","id":163611270,"user":{"login":"michaelochs","id":1901926,"avatar_url":"https://avatars.githubusercontent.com/u/1901926?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelochs","html_url":"https://github.com/michaelochs","followers_url":"https://api.github.com/users/michaelochs/followers","following_url":"https://api.github.com/users/michaelochs/following{/other_user}","gists_url":"https://api.github.com/users/michaelochs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelochs/subscriptions","organizations_url":"https://api.github.com/users/michaelochs/orgs","repos_url":"https://api.github.com/users/michaelochs/repos","events_url":"https://api.github.com/users/michaelochs/events{/privacy}","received_events_url":"https://api.github.com/users/michaelochs/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T13:16:05Z","updated_at":"2015-12-10T13:16:05Z","body":"@JoachimK I am currently working on this implementation. Do you have a nice idea about how to provide the 'ok' text in case no recovery attempter is available? The most elegant way I know is the project from @McZonk (https://github.com/McZonk/UIKitPlusLocalization/blob/master/NSBundle%2BUIPStandardLocalizations.m) but it requires to 'guess' the location of the UIKit framework correctly (https://github.com/McZonk/UIKitPlus/blob/master/NSBundle%2BUIPUIKitBundle.m)."}}