Re: Small variant of NSSearchField?
Re: Small variant of NSSearchField?
- Subject: Re: Small variant of NSSearchField?
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 10 Mar 2008 23:50:23 +0100
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 (email@hidden)
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:
This email sent to email@hidden