I think Safari is using NSUnifiedTitleAndToolbarWindowMask. If you do that and you don’t have a toolbar, you can just center an NSTextField where you want it. If you do have a toolbar you can still put an NSTextField in it, you just can’t control whether it stays centered or even if it stays in the toolbar. rdar://18491784 requested something that behaves like a FlexibleSpaceItem - it fits in whatever space is left without pushing things to overflow - but has content, such as a label, so you can still have something title-like.
On Jun 22, 2015, at 4:49 PM, Quincey Morris <[email protected]<mailto:[email protected]>> wrote: On Jun 22, 2015, at 16:39 , Carl Hoefs <[email protected]<mailto:[email protected]>> wrote: Where might I find info on the API that Safari uses? It’s not Safari-specific, it’s a new Yosemite API that (I assume) Safari now uses. For a quick overview, look in the release notes: https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKit/<https://urldefense.proofpoint.com/v2/url?u=https-3A__developer.apple.com_library_mac_releasenotes_AppKit_RN-2DAppKit_&d=BQMFaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=ie7S-J__EKnfyVOBV7-jV2rZ--p47O6vkyTklpDM3h4&m=aToJWQ3Gfmvgp-iKTyswGxkprmcFP0ZBi7d2ehwQMsY&s=I8lsrIhJOzj0edJwZ6JiFQvsYEQX5Fz-ydgkc0bxqII&e=> for ‘titlebarAccessoryViewControllers’. You may also need to use ‘titlebarAppearsTransparent’ and ‘NSFullSizeContentViewWindowMask’ and ‘titleVisibility’, but I don’t know any details — I just noticed that the new capability is there. _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
