Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: small or mini NSSegmentedControl in textured windows



On Mar 3, 2004, at 11:51 AM, Joshua Scott Emmons wrote:

It seems as though NSSegmentedControl only has one size in textured windows. Setting it to small nor mini seems to have no effect.

But if you put a normal-sized NSSegmentControl in a textured window and compare it to the segment control in Address Book, you'll see Address Book's control is smaller. It doesn't look like Address Book's segmented control is "fake" (I don't see the graphics for it in the package), so does anyone have any idea how Apple managed to coerce the NSSegmentedControl to be small in the textured Address Book?

It looks fake to me. Try clicking on the already-selected segment. Note that it turns grey. Try clicking on the currently-selected segment of a real NSSegmentedControl. It turns dark blue. (assuming you haven't chosen the "graphite" appearance in System Preferences)

Nearly all of Apple's applications use fake segmented controls. This probably due to the relatively late development of the standard NSSegmentedControl. My guess is that they didn't finish implementing all the features of NSSegmentedCell (including the smaller sizes for textured windows) before the Panther release. After all, they didn't even manage to get it into Interface Builder.



--
Tim Buchheim System Administrator
Computer Science Department Phone: (909) 607-3485
Harvey Mudd College Fax: (909) 607-8364
1250 N Dartmouth Ave E-mail: email@hidden
Claremont, CA 91711 http://www.cs.hmc.edu/~tcb/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >small or mini NSSegmentedControl in textured windows (From: Joshua Scott Emmons <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.