The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > Community > Omni Lounge
FAQ Members List Calendar Today's Posts

 
Title bar background in OmniFocus Thread Tools Search this Thread Display Modes
How did you guys add a custom background to the title bar in OmniFocus? Please help me out here. I have searched and searched but cannot find any information on customizing the title bar of an NSWindow. Thanks!
 
Basically, we add a subview to the window's border view. The window's border view is not reachable via public API, so we use -valueForKey: to ask for it. Requires 10.4 or later. We don't like using non-public stuff, but we considered it ok for this situation as it is only to indicate the fact that the app is not a final build - the final release will not use the construction bar, andd if Apple ever removes the border view or breaks this we will come up with an alternate solution or will do without.

For the exact details, you can grab OmniAppKit here: <http://www.omnigroup.com/developer/

Look in NSWindow-OAExtensions.m for -addConstructionWarning.

-andrew
 
Thanks, Andrew. I find it strange that Apple makes it so difficult to work with the standard title bar, unless you are using a textured window, which comes with extra baggage (eg, rounded corners). After poking around, it seems to be that the ideal way to go about this would be to use a textured window and somehow straighten out the bottom corners--although I have no idea how to do that.

EDIT: If anyone's interested, I figured out prevent the corners from of a textured window from being rounded: NSWindow has a private method -setBottomCornerRounded:(BOOL)option which can be accessed in an NSWindow subclass.

Last edited by titaniumdecoy; 2007-12-14 at 09:40 PM..
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Help? Send flagged messages to Omnifocus automatically, changing title/context based on from/subject jpr OmniFocus Extras 1 2012-10-15 06:24 PM
Clipping Title ckennedy OmniFocus 1 for Mac 0 2011-08-24 08:15 AM
Sending a Web page title to OmniFocus Ward OmniFocus 1 for Mac 3 2008-08-25 08:46 AM
Will Omnifocus for iphone can keep running in background as Mail application elle007 OmniFocus for iPhone 1 2008-07-30 09:55 AM
Title of Clippings iBsteve OmniFocus 1 for Mac 4 2007-12-17 05:56 PM


All times are GMT -8. The time now is 04:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.