[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about NSToolbar

From: Fred Kiefer
Subject: Re: Question about NSToolbar
Date: Fri, 24 Sep 2010 20:24:55 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv: Gecko/20100714 SUSE/3.0.6 Thunderbird/3.0.6

Am 24.09.2010 19:47, schrieb Germán Arias:
> I'm just trying to use a toolbar, but the standard items
> NSToolbarPrintItemIdentifier and  NSToolbarShowFontsItemIdentifier,
> aren't active. I need do some special thing to active these items? Of
> course, I can implement these, by hand, on the delegate method: 
> - (NSToolbarItem*) toolbar: (NSToolbar*)toolbar itemForItemIdentifier:
> (NSString*)itemIdentifier willBeInsertedIntoToolbar: (BOOL)flag
> But I whant know how the standard items work.

Hard to say without more information. The font item should be active as
soon as there is a first responder that understands
orderFrontFontPanel:. I think only the NSFontManager implements that
method and that object may not be available in your application.

I haven't checked the conditions of the printer item, but there will be
something similar.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]