Annotation of chimera/NSToolbarAdditions.m, revision 1.1

1.1     ! macserv     1: #import "NSToolbarAdditions.h"
        !             2: #import <Foundation/Foundation.h>
        !             3: 
        !             4: @implementation NSToolbar (NSToolbarCustomizableAdditions)
        !             5: - (BOOL) alwaysCustomizableByDrag {
        !             6:     return (BOOL) _tbFlags.clickAndDragPerformsCustomization;
        !             7: }
        !             8: 
        !             9: - (void) setAlwaysCustomizableByDrag:(BOOL) flag {
        !            10:        _tbFlags.clickAndDragPerformsCustomization = (unsigned int) flag & 1;
        !            11: }
        !            12: 
        !            13: - (BOOL) showsContextMenu {
        !            14:        return (BOOL) ! _tbFlags.showsNoContextMenu;
        !            15: }
        !            16: 
        !            17: - (void) setShowsContextMenu:(BOOL) flag {
        !            18:        _tbFlags.showsNoContextMenu = (unsigned int) ! flag & 1;
        !            19: }
        !            20: 
        !            21: - (unsigned int) indexOfFirstMovableItem {
        !            22:        return (unsigned int) _tbFlags.firstMoveableItemIndex;
        !            23: }
        !            24: 
        !            25: - (void) setIndexOfFirstMovableItem:(unsigned int) anIndex {
        !            26:        _tbFlags.firstMoveableItemIndex = (unsigned int) anIndex & 0x3F;
        !            27: }
        !            28: @end

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>