{"action":"created","issue":{"url":"https://api.github.com/repos/shpakovski/MASPreferences/issues/45","repository_url":"https://api.github.com/repos/shpakovski/MASPreferences","labels_url":"https://api.github.com/repos/shpakovski/MASPreferences/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/shpakovski/MASPreferences/issues/45/comments","events_url":"https://api.github.com/repos/shpakovski/MASPreferences/issues/45/events","html_url":"https://github.com/shpakovski/MASPreferences/issues/45","id":119219392,"number":45,"title":"Getting exception when loading preferences screen","user":{"login":"bipinvaylu","id":717062,"avatar_url":"https://avatars.githubusercontent.com/u/717062?v=3","gravatar_id":"","url":"https://api.github.com/users/bipinvaylu","html_url":"https://github.com/bipinvaylu","followers_url":"https://api.github.com/users/bipinvaylu/followers","following_url":"https://api.github.com/users/bipinvaylu/following{/other_user}","gists_url":"https://api.github.com/users/bipinvaylu/gists{/gist_id}","starred_url":"https://api.github.com/users/bipinvaylu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bipinvaylu/subscriptions","organizations_url":"https://api.github.com/users/bipinvaylu/orgs","repos_url":"https://api.github.com/users/bipinvaylu/repos","events_url":"https://api.github.com/users/bipinvaylu/events{/privacy}","received_events_url":"https://api.github.com/users/bipinvaylu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-11-27T16:16:36Z","updated_at":"2016-09-04T10:46:12Z","closed_at":"2016-09-04T10:46:12Z","body":"I am newbie using MASPreferences in Swift and Storyboard for design.\r\n\r\nFollowing is my application code: \r\nAppDelegate.swift \r\n```\r\n @IBAction func openPreferences(sender: AnyObject) {\r\n        preferencesWindowController().showWindow(sender)\r\n    }\r\n\r\nfunc preferencesWindowController() -> NSWindowController {\r\n        if mPreferencesWindowController == nil {\r\n            let accountViewController: NSViewController = AccountViewController()\r\n            let advanceViewController: NSViewController = AdvanceViewController()\r\n            let controllers : [AnyObject] = [accountViewController, advanceViewController]\r\n            let title: String = NSLocalizedString(\"Preferences\", comment: \"Common title for Preferences window\")\r\n            self.mPreferencesWindowController = MASPreferencesWindowController(viewControllers: controllers, title: title)\r\n        }\r\n        return mPreferencesWindowController!\r\n    }\r\n```\r\n\r\nAccountViewController.swift\r\n```\r\nclass AccountViewController: NSViewController, MASPreferencesViewController {\r\n    //Other codes\r\n    override var identifier: String? { get {return \"Account\"} set { super.identifier = newValue} }\r\n    \r\n    var toolbarItemImage: NSImage! {\r\n        return NSImage(named : \"Account\")!\r\n    }\r\n    \r\n    var toolbarItemLabel: String {\r\n        return \"Account\"\r\n    }\r\n}\r\n```\r\n\r\nGetting this exception:\r\n```\r\n2015-11-27 01:34:28.554 ottodj[36666:4245308] -[NSNib _initWithNibNamed:bundle:options:] could not load the nibName: ottodj.AccountViewController in bundle (null).\r\n2015-11-27 01:34:28.556 ottodj[36666:4245308] (\r\n\t0   CoreFoundation                      0x00007fff968b7e32 __exceptionPreprocess + 178\r\n\t1   libobjc.A.dylib                     0x00007fff885864fa objc_exception_throw + 48\r\n\t2   CoreFoundation                      0x00007fff9691e65d +[NSException raise:format:] + 205\r\n\t3   AppKit                              0x00007fff9382f70f -[NSNib _initWithNibNamed:bundle:options:] + 608\r\n\t4   AppKit                              0x00007fff9382f465 -[NSViewController _nibWithName:bundle:] + 127\r\n\t5   AppKit                              0x00007fff9382f0bf -[NSViewController loadView] + 129\r\n\t6   AppKit                              0x00007fff9379c662 -[NSViewController _loadViewIfRequired] + 75\r\n\t7   AppKit                              0x00007fff9379c5cd -[NSViewController view] + 30\r\n\t8   MASPreferences                      0x0000000100361c2e -[MASPreferencesWindowController setSelectedViewController:] + 862\r\n\t9   MASPreferences                      0x0000000100362b1f -[MASPreferencesWindowController toolbarItemDidClick:] + 127\r\n\t10  AppKit                              0x00007fff93a9947e -[NSToolbarButton sendAction:to:] + 75\r\n\t11  AppKit                              0x00007fff939c6e03 -[NSToolbarItemViewer mouseDown:] + 4996\r\n\t12  AppKit                              0x00007fff93f1a42d -[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 6322\r\n\t13  AppKit                              0x00007fff93f1b411 -[NSWindow _reallySendEvent:isDelayedEvent:] + 212\r\n\t14  AppKit                              0x00007fff93960b8d -[NSWindow sendEvent:] + 517\r\n\t15  AppKit                              0x00007fff938e0b27 -[NSApplication sendEvent:] + 2540\r\n\t16  AppKit                              0x00007fff93747d9a -[NSApplication run] + 796\r\n\t17  AppKit                              0x00007fff93710fbe NSApplicationMain + 1176\r\n\t18  ottodj                              0x000000010006e307 main + 87\r\n\t19  libdyld.dylib                       0x00007fff92e375ad start + 1\r\n\t20  ???                                 0x0000000000000003 0x0 + 3\r\n)\r\n```\r\n\r\nCan you please guide me if i am missing something.\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/shpakovski/MASPreferences/issues/comments/244595916","html_url":"https://github.com/shpakovski/MASPreferences/issues/45#issuecomment-244595916","issue_url":"https://api.github.com/repos/shpakovski/MASPreferences/issues/45","id":244595916,"user":{"login":"sorbits","id":11901,"avatar_url":"https://avatars.githubusercontent.com/u/11901?v=3","gravatar_id":"","url":"https://api.github.com/users/sorbits","html_url":"https://github.com/sorbits","followers_url":"https://api.github.com/users/sorbits/followers","following_url":"https://api.github.com/users/sorbits/following{/other_user}","gists_url":"https://api.github.com/users/sorbits/gists{/gist_id}","starred_url":"https://api.github.com/users/sorbits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorbits/subscriptions","organizations_url":"https://api.github.com/users/sorbits/orgs","repos_url":"https://api.github.com/users/sorbits/repos","events_url":"https://api.github.com/users/sorbits/events{/privacy}","received_events_url":"https://api.github.com/users/sorbits/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T10:46:12Z","updated_at":"2016-09-04T10:46:12Z","body":"The exception says: _“could not load the nibName: ottodj.AccountViewController in bundle (null).”_\r\n\r\nThis indicates that your sample project lack a bundle/bundle identifier.\r\n\r\nClosing as I believe this to be user error, provide a full project showing this issue if you want further help.\r\n"}}
{"actor":{"display_login":"sorbits"}}