discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMacintoshInterfaceStyle


From: Daniel Patrick
Subject: NSMacintoshInterfaceStyle
Date: Sat, 02 Feb 2002 16:53:21 -0600
User-agent: Mozilla/5.0 (X11; U; Linux 2.4.16-powerpc ppc; en-US; m18) Gecko/20001110

I've added a NSMacintoshInterfaceStyle option to the NSMenu code... Or at least the beginnings of it. I have a screenshot at http://www.webology.org/daniel/NSMacintoshInterfaceStyle.png and the patch is at http://www.webology.org/daniel/NSMacintoshInterfaceStyle.diff

activate the style with:
defaults write NSGlobalDomain NSInterfaceStyleDefault NSMacintoshInterfaceStyle

the changes were made to the core snapshot of 1/26/2002, but the patch applied to today's snapshot as well.

I changed the way new items are added to the menu if it's horizontal because the buttons were being drawn backwards (quit first, info last). So the index will be reversed on horizontal menu's, I hope that doesn't break something.

Things I wanted to add but didn't for one reason or another:

tear off submenu's. It shouldn't be too tough to add a few pixels to the top of submenu's to allow them to be torn. How many pixels would be appropriate?

transient menu's. This looks tough. I disabled transients for this menutype. The menu code uses the same view as the main menu for them and they kept drawing horizontally. Mac doesn't have them anyway. ( :

Add some mac-like buttons/items to the horizontal bar. First button would be like the apple button on osx. On the right, some sort of dock for idiot lights and a clock. Gotta check OSX's api for that dock. ) :

The menu cell resize option in nsmenuitemcell.m does not appear to resize by width, leaving uniform button sizes. That's not such a bad thing, I suppose.

submenu's of the main menu should be at least the same width of the parent option.

among other things...

This is my first time coding in a LONG time, and my first time ever in objc, so any constructive criticizms are welcome.

Daniel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]