• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Small variant of NSSearchField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Small variant of NSSearchField? (From: John Stiles <email@hidden>)

  • Prev by Date: [iPhone] xml parsing
  • Next by Date: Re: Small variant of NSSearchField?
  • Previous by thread: Re: Small variant of NSSearchField?
  • Next by thread: [iPhone] xml parsing
  • Index(es):
    • Date
    • Thread