Re: iTunes like toolbar
Re: iTunes like toolbar
- Subject: Re: iTunes like toolbar
- From: Dragan Milić <email@hidden>
- Date: Sat, 25 Feb 2006 18:57:58 +0100
Hi,
iTunes doesn't use NSToolbar (it's Carbon app, not Cocoa), moreover
it doesn't use any kind of toolbar at all, just like Safari doesn't,
for example. Controls that you call "items" in the "toolbar" are
actually controls themselves: buttons, text fields, segmented
controls etc... So, if you want the same effect, place your controls
directly on the top of window, just right below tiltebar, and set
them appropriate autosizing properties so they behave correctly when
resizing window.
On sub 25. 02. 2006. at 18:33, Aleaxander Cohen wrote:
I've been trying to implement an NSToolbar somewhat like the iTunes
toolbar to no avail. The toolbar in iTunes seems to always keep 1
item centered and the others placed equally on both sides. I first
though that i could do this with 5 items. I would put an item on
each far side and have their max and min sizes set the same then
put 2 flexible items and item in the middle. This does not seem to
work because NSToolbar seems to want to always push items towards
the right whatever i do. Any ideas how to implement this? Do i need
to only use 1 toolbar item and set its view to a custom view that
handles everything or am i missing something simple here?
thanks
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden