• 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: custom toolbar item autoresizing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom toolbar item autoresizing?


  • Subject: Re: custom toolbar item autoresizing?
  • From: John Mikros <email@hidden>
  • Date: Tue, 31 Mar 2009 14:08:15 -0700

Thanks for the response!

Indeed it works -- there was code later in my - toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: method that was re-setting the min and max size to the bounds of the view. D'oh!

thanks
-john


On Mar 31, 2009, at 12:36 PM, Peter Ammon wrote:


On Mar 31, 2009, at 12:16 PM, John Mikros wrote:

Hello all,

I have a custom view in an NSToolbar.  I would like this item to
expand as much as possible, similar to
NSToolbarFlexibleSpaceItemIdentifier, or similar to the address bar
in Safari.

I was hoping that setting the min and max size on the NSToolbarItem
would cause this to happen, but it does not.

Is there some trick to this?

thanks
-john

Setting the minimum and maximum size should be enough. See the search field in the SimpleToolbar example (/Developer/Examples/AppKit/ SimpleToolbar/) for sample code.

-Peter


_______________________________________________

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: 
 >custom toolbar item autoresizing? (From: John Mikros <email@hidden>)
 >Re: custom toolbar item autoresizing? (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: Processing data maintained with Core Data
  • Next by Date: Re: Best Strategy to Control iTunes
  • Previous by thread: Re: custom toolbar item autoresizing?
  • Next by thread: Converting non-English date string to NSDate
  • Index(es):
    • Date
    • Thread