Re: NSWindow child window and key status
Re: NSWindow child window and key status
- Subject: Re: NSWindow child window and key status
- From: Quincey Morris <email@hidden>
- Date: Mon, 15 Jun 2015 22:50:59 +0000
On Jun 15, 2015, at 13:38 , Ben <email@hidden> wrote:
>
> I'm trying to replicate a portion of UI in a manner similar to the formula editor of Numbers. For those not familiar, its a widget that floats above the spreadsheet grid featuring a text view and a button or two.
>
> Currently I am using the addChildWindow:ordered: method on NSWindow to add a custom borderless window above the grid view and putting an NSTextView in that window. So far so good.
Have you tried implementing this with a NSPanel? It’s designed (when configured with suitable options) to float over other windows — though not a *specific* other window. It doesn’t take “main” status away from other windows, and takes “key” status away only when firstResponder is actually in one of its views (again when configured that way).
_______________________________________________
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