FROM : Stéphane Sudre
DATE : Mon Mar 10 23:50:23 2008
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];
DATE : Mon Mar 10 23:50:23 2008
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];
| Related mails | Author | Date |
|---|---|---|
| John Stiles | Mar 10, 23:27 | |
| Jonathan Hess | Mar 10, 23:42 | |
| John Stiles | Mar 10, 23:45 | |
| Stéphane Sudre | Mar 10, 23:50 | |
| Tom Bunch | Mar 10, 23:50 | |
| John Stiles | Mar 10, 23:53 | |
| John Stiles | Mar 10, 23:59 | |
| John Stiles | Mar 11, 00:07 |






Cocoa mail archive

