Unexpected : = #192

Open
ThaNerd opened this Issue Jun 29, 2016 · 2 comments

Projects

None yet

2 participants

@ThaNerd
ThaNerd commented Jun 29, 2016

I tried to convert an example from Apple Developer sample code, and one of the files fails with an issue that is un understandable: Unexpected : = (on line 6 below)

- (NSViewController *)viewControllerForSelection:(NSArray *)selection
{
    NSViewController *returnViewController = nil;
    if (selection != nil && selection.count == 1)
    {
        BaseNode *node = [selection[0] representedObject];

        if (node.url != nil)
        {
            if (node.isBookmark)
            {
                // it's a bookmark,
                // return a view controller with a web view, retarget with "urlStr"
                //
                WebView *webView = (WebView *)self.webViewController.view;
                webView.mainFrameURL = [node.url absoluteString];   // re-target to the new url

                returnViewController = self.webViewController;
            }
            Else
            {
                // detect if the url is a directory
                if (node.isDirectory)
                {
                    // it's a folder
                    self.iconViewController.url = node.url;
                    returnViewController = self.iconViewController;
                }
                Else
                {
                    // it's a file
                    self.fileViewController.url = node.url;
                    returnViewController = self.fileViewController;
                }
            }
        }
        Else
        {
            // no view controller (it's a group)
        }
    }
    Else
    {
        // no view controller (no selection)
    }

    Return returnViewController;
}
@drkameleon
Owner

I'm looking into it.

@drkameleon drkameleon added the bug label Jun 30, 2016
@ThaNerd
ThaNerd commented Sep 17, 2016

Still no answer after 2 and a half month, no new software update, no comment, nothing. I basically gave money for crappy software that DOES NOT work as intended. Or at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment