Re: iTunes like toolbar
Re: iTunes like toolbar
- Subject: Re: iTunes like toolbar
- From: Dragan Milić <email@hidden>
- Date: Sat, 25 Feb 2006 21:57:02 +0100
On sub 25. 02. 2006., at 19:04, Finlay Dobbie wrote:
On 2/25/06, Dragan Milić <email@hidden> wrote:
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,
Actually, I believe Safari does as of 2.0 or thereabouts.
Well, I'm currently inspecting Safari 2.0.3 package and inside
"Browser.nib" I can see that main window still contains a lot of
standard or Apple custom NSButtons that mimic toolbar items, so it
still doesn't use NSToolbar.
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.
<http://developer.apple.com/samplecode/ToolbarSample/
ToolbarSample.html>
demonstrates how to put custom controls in an NSToolbar.
-- Finlay
I don't think that will help Alex. He actually wants to achieve
iTunes-like toolbar behaviour, but with unified titlebar and toolbar
look. This is from e-message he sent to me, but apperantly forgot to
copy to the list:
I'm aware that iTunes is not Cocoa, i was just going for the
comparison because I am using cocoa. Anyway, what you said is
pretty much what i was thinking. Thanks for confirming it! So how
do i get the unified toolbar look without actually having an
NSToolbar?
Alex
AFAIK, that is not possible neither by placing standard controls on a
window like in Safari (you'll not get unifiedbut aqua look, the trick
works only with brushed metal), nor by making simple custom control
and putting it in a NSToolbar. The only way I see it possible, but
I'm not sure, neither I tried, to make custom control such that it
draws something that will mimic items and then draws its background
as completely transparent, so the toolbar is visible under the
control transparent background. And off course, to choose unified
look. But I really don't know if this will work. Alex, you can try
and let us know of results.
Regards,
Milke
_______________________________________________
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