macOS: Fix GVAttributeInspectorController.m warning with Xcode 10
authorBrendan Shanks <brendan@bslabs.net>
Sat, 15 Dec 2018 07:25:50 +0000 (23:25 -0800)
committerBrendan Shanks <brendan@bslabs.net>
Tue, 18 Dec 2018 02:54:33 +0000 (18:54 -0800)
macosx/GVAttributeInspectorController.m

index cf6c81f2cc2424990358c82c24e7f4b3f214e094..c6ed26bde6121467d7a93db41851ad8234f813d7 100644 (file)
 
 - (void)tableViewSelectionDidChange:(NSNotification *)aNotification
 {
-       int selectedRow = [[aNotification object] selectedRow];
+       NSInteger selectedRow = [[aNotification object] selectedRow];
        NSString* documentation = selectedRow == -1 ? nil : [[[_allSchemas objectForKey:[componentToolbar selectedItemIdentifier]] objectAtIndex: selectedRow] documentation];
        [[documentationWeb mainFrame] loadHTMLString:documentation baseURL:[NSURL URLWithString:@"http://www.graphviz.org/"]];
 }