On Mar 10, 2008, at 11:27 PM, John Stiles wrote:

[[searchField cell] setControlSize:NSSmallControlSize];


// A solution as ugly as an Orc

        float tWidth;
        NSRect tFrame;

        tWidth =NSWidth([IBsearchField_ frame]);

[IBsearchField_ setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSSmallControlSize]]];
                
        [[IBsearchField_ cell] setControlSize:NSSmallControlSize];
                
        [IBsearchField_ sizeToFit];

        tFrame=[IBsearchField_ frame];

        tFrame.size.width= tWidth;

        [IBsearchField_ setFrame: tFrame];




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to