Re: Creating an NSWindow with utility style in Xcode storyboard?
Re: Creating an NSWindow with utility style in Xcode storyboard?
- Subject: Re: Creating an NSWindow with utility style in Xcode storyboard?
- From: Rick Mann <email@hidden>
- Date: Mon, 07 Nov 2016 19:44:54 -0800
> On Nov 7, 2016, at 19:40 , Quincey Morris <email@hidden> wrote:
>
> On Nov 7, 2016, at 18:28 , Rick Mann <email@hidden> 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 much benefit to cluttering up your main (or whatever) storyboard with what is essentially an unconnected piece of UI. In addition, we recently had a long thread about NSPanel-style windows in storyboards, and there’s some oddity is using a segue to *show* a singleton panel**. It may actually be easier to use a XIB for an inspector panel.
>
>
> ** I don’t remember the details, but I think it might have been that you should not *close* a singleton panel, because you’ll get a new panel the next time it’s shown via a “show” segue. Instead, you have to short-circuit the regular close mechanism and do a simple orderOut instead. Something like that.
So, I guess it's technically an NSPanel I want in my storyboard. And yeah, I already made it a separate storyboard, not the main one. But there's no NSPanel object in the catalog, only NSWindow, and there's no UI for adjusting the title bar appearance (that I can see).
I can drag out an NSWindow, and I can even change its class to NSPanel, but I can't set the style.
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden