Re: Creating an NSWindow with utility style in Xcode storyboard?

2016-11-07 Thread Quincey Morris
On Nov 7, 2016, at 19:55 , Rick Mann wrote: > > Xcode never gives you controls for setting a class name Much like the Spanish Inquisition. (Monty Python joke, for those going “Huh?”) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Creating an NSWindow with utility style in Xcode storyboard?

2016-11-07 Thread Rick Mann
> On Nov 7, 2016, at 19:51 , Quincey Morris > wrote: > > On Nov 7, 2016, at 19:44 , Rick Mann wrote: >> >> I can drag out an NSWindow, and I can even change its class to NSPanel, but >> I can't set the style. > > You mean you dragged out a window controller, right? Correct. > When I do th

Re: Xcode inspector-like tabs?

2016-11-07 Thread Rick Mann
Hmm, maybe. I missed that. When I select it, I get nothing at all, not sure how to specify the images for my tabs. But I'll look into it. Thanks! > On Nov 7, 2016, at 19:49 , Quincey Morris > wrote: > > On Nov 7, 2016, at 19:45 , Rick Mann wrote: >> >> I just wanted it to do all the heavy li

Re: Creating an NSWindow with utility style in Xcode storyboard?

2016-11-07 Thread Quincey Morris
On Nov 7, 2016, at 19:44 , Rick Mann wrote: > > I can drag out an NSWindow, and I can even change its class to NSPanel, but I > can't set the style. You mean you dragged out a window controller, right? When I do this, I can change the window’s class to NSPanel, and then the attributes inspect

Re: Xcode inspector-like tabs?

2016-11-07 Thread Quincey Morris
On Nov 7, 2016, at 19:45 , Rick Mann wrote: > > I just wanted it to do all the heavy lifting there, like a tab controller. Now that I think about it, doesn’t the “toolbar” style of NSTabViewController do what you want? ___ Cocoa-dev mailing list (Co

Re: WatchKit Noob Question

2016-11-07 Thread Quincey Morris
On Nov 7, 2016, at 17:00 , Charles Jenkins wrote: > > What am I doing wrong? What is the error message? And you did import UserNotifications, right? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: Xcode inspector-like tabs?

2016-11-07 Thread Rick Mann
> On Nov 7, 2016, at 19:43 , Quincey Morris > wrote: > > On Nov 7, 2016, at 18:01 , Rick Mann wrote: >> >> Is there a standard control to implement the Xcode inspector tabs across the >> top? > > My guess is that it’s just a custom view with a series of buttons, with the > button status dr

Re: Creating an NSWindow with utility style in Xcode storyboard?

2016-11-07 Thread Rick Mann
> On Nov 7, 2016, at 19:40 , Quincey Morris > wrote: > > On Nov 7, 2016, at 18:28 , Rick Mann wrote: >> >> Is there no way to make a floating inspector window in a Storyboard in Xcode >> 8? > > What’s preventing you from dragging out a window controller onto the > storyboard? > > However

Re: Xcode inspector-like tabs?

2016-11-07 Thread Quincey Morris
On Nov 7, 2016, at 18:01 , Rick Mann wrote: > > Is there a standard control to implement the Xcode inspector tabs across the > top? My guess is that it’s just a custom view with a series of buttons, with the button status driven by the selected tab of the tabless tab view. Is there some other

Re: Creating an NSWindow with utility style in Xcode storyboard?

2016-11-07 Thread Quincey Morris
On Nov 7, 2016, at 18:28 , Rick Mann wrote: > > Is there no way to make a floating inspector window in a Storyboard in Xcode > 8? What’s preventing you from dragging out a window controller onto the storyboard? However, I would be inclined to put it in its own storyboard, since there’s not

Creating an NSWindow with utility style in Xcode storyboard?

2016-11-07 Thread Rick Mann
Is there no way to make a floating inspector window in a Storyboard in Xcode 8? -- Rick Mann rm...@latencyzero.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact t

Xcode inspector-like tabs?

2016-11-07 Thread Rick Mann
Is there a standard control to implement the Xcode inspector tabs across the top? The segmented control doesn't seem to have a controllable height. Tab controller doesn't seem to have a mode that looks like that. I figure the rest is built with a (tabless) tab controller and stack view. -- R

WatchKit Noob Question

2016-11-07 Thread Charles Jenkins
I’m writing my first WatchKit app. My deployment target is watchOS 3.1. I have searched the documentation and tutorials for scheduling local notifications on the watch, and I’m stuck at step 1. This line of my WatchKit Extension app’s InterfaceController.swift app file will not compile: let con

Re: Programmatically Clear Dirty NSDocument

2016-11-07 Thread Richard Charles
> On Nov 7, 2016, at 2:33 PM, Quincey Morris > wrote: > > On Nov 7, 2016, at 10:46 , Richard Charles wrote: >> >> This is exactly the same as before but it now works! > > Regarding that particular mystery, NSChangeUndone decrements the change > count. If it happened to be 1 when you tried t

Re: Programmatically Clear Dirty NSDocument

2016-11-07 Thread Richard Charles
> On Nov 7, 2016, at 12:24 PM, Jens Alfke wrote: > >> On Nov 7, 2016, at 10:46 AM, Richard Charles wrote: >> >>[doc performSelector:@selector(updateChangeCount:) >> withObject:@(NSChangeUndone) >> afterDelay:0]; > > That one definitely won’t work. The parameter t

Re: Programmatically Clear Dirty NSDocument

2016-11-07 Thread Quincey Morris
On Nov 7, 2016, at 10:46 , Richard Charles wrote: > > This is exactly the same as before but it now works! Regarding that particular mystery, NSChangeUndone decrements the change count. If it happened to be 1 when you tried this, the document would stop being dirty. Presumably, in your first t

Re: Programmatically Clear Dirty NSDocument

2016-11-07 Thread Jens Alfke
Why not just call [doc revertToContentsOfURL:[doc url] ofType:[doc fileType] error:&error], which is what the docs for -revertDocumentToSaved: say it does after the user confirmation? —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: Programmatically Clear Dirty NSDocument

2016-11-07 Thread Jonathan Mitchell
> On 7 Nov 2016, at 18:46, Richard Charles wrote: > > NSChangeUndone try NSChangeCleared ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-d

Re: Programmatically Clear Dirty NSDocument

2016-11-07 Thread Jens Alfke
> On Nov 7, 2016, at 10:46 AM, Richard Charles wrote: > >[doc performSelector:@selector(updateChangeCount:) > withObject:@(NSChangeUndone) > afterDelay:0]; That one definitely won’t work. The parameter to updateChangeCount: is an integer (enum) value, not an objec

Programmatically Clear Dirty NSDocument

2016-11-07 Thread Richard Charles
I have a dirty document that needs to be cleared programmatically. So I try the following but it does not work. I have verified that updateChangeCount: is being called but the document change count state is not being changed. This code is executed on the main thread. // Called from a contro

Re: Fonts in TableView

2016-11-07 Thread Gerriet M. Denkmann
> On 7 Nov 2016, at 16:43, Alastair Houghton > wrote: > > On 6 Nov 2016, at 06:18, Quincey Morris > wrote: > >> There is probably no perfect strategy that works for every font. However, >> for the kinds of design decisions that Apple made when it started doing >> typography properly (in th

Re: Fonts in TableView

2016-11-07 Thread Alastair Houghton
On 6 Nov 2016, at 06:18, Quincey Morris wrote: > > 5. It’s rather indeterminate what glyphs the bounding box should reflect. In > particular, in digital typography using Unicode characters, a font as > perceived by the user may be a composite of multiple actual fonts. For > example, there’s l