changeset 1907:54f9ec5bb793

XCode 7.0 reports that NSTabViewItem initWithIdentifier can't be NULL... Even though it is used like that in countless examples and sources... So setting the identifier to a NSString that shows the internal page ID.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 27 Jul 2015 10:27:05 +0000
parents fac81560eb09
children 7e23f3dccb6b
files mac/dw.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Tue Apr 21 17:12:09 2015 +0000
+++ b/mac/dw.m	Mon Jul 27 10:27:05 2015 +0000
@@ -8371,7 +8371,7 @@
 {
     DWNotebook *notebook = handle;
     NSInteger page = [notebook pageid];
-    DWNotebookPage *notepage = [[DWNotebookPage alloc] initWithIdentifier:nil];
+    DWNotebookPage *notepage = [[DWNotebookPage alloc] initWithIdentifier:[NSString stringWithFormat: @"pageid:%d", (int)page]];
     [notepage setPageid:(int)page];
     if(front)
     {