{"action":"closed","issue":{"url":"https://api.github.com/repos/remirobert/Camembert/issues/7","labels_url":"https://api.github.com/repos/remirobert/Camembert/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/remirobert/Camembert/issues/7/comments","events_url":"https://api.github.com/repos/remirobert/Camembert/issues/7/events","html_url":"https://github.com/remirobert/Camembert/issues/7","id":58497941,"number":7,"title":"Issue in getting class name","user":{"login":"OmarBizreh","id":3820516,"avatar_url":"https://avatars.githubusercontent.com/u/3820516?v=3","gravatar_id":"","url":"https://api.github.com/users/OmarBizreh","html_url":"https://github.com/OmarBizreh","followers_url":"https://api.github.com/users/OmarBizreh/followers","following_url":"https://api.github.com/users/OmarBizreh/following{/other_user}","gists_url":"https://api.github.com/users/OmarBizreh/gists{/gist_id}","starred_url":"https://api.github.com/users/OmarBizreh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmarBizreh/subscriptions","organizations_url":"https://api.github.com/users/OmarBizreh/orgs","repos_url":"https://api.github.com/users/OmarBizreh/repos","events_url":"https://api.github.com/users/OmarBizreh/events{/privacy}","received_events_url":"https://api.github.com/users/OmarBizreh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-22T10:25:49Z","updated_at":"2015-02-22T11:31:39Z","closed_at":"2015-02-22T11:31:39Z","body":"Hi, I faced an issue in this function: \r\nit is always returning nil when project name includes spaces, for example if my project is called \"My App\" the return result will be nil. If I know Objective-C I would have helped fixing it :+1: \r\n```Swift\r\nid camembertCreateObject(NSString *nameClass) {\r\n    NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@\"CFBundleName\"];\r\n    NSString *classStringName = [NSString stringWithFormat:@\"_TtC%lu%@%lu%@\", (unsigned long)appName.length,\r\n                                 appName, (unsigned long)nameClass.length, nameClass];\r\n    \r\n    Class customClass = NSClassFromString(classStringName);\r\n    if (customClass == nil) {\r\n        return nil;\r\n    }\r\n    return [[customClass alloc] init];\r\n}\r\n```\r\n\r\n"}}