Re: Disable "Show Fonts..." menu item?
Re: Disable "Show Fonts..." menu item?
- Subject: Re: Disable "Show Fonts..." menu item?
- From: Todd Ransom <email@hidden>
- Date: Sat, 27 May 2006 07:47:14 -0600
You make a good point about the font panel. That is the crux of my
problem. Since it is always enabled and may or may not work on any
particular UI element, I have no way of letting the user know when it
will work. My users are assuming that since this text view has rich
text in it they should be able to use the font panel. Bu the rich
text is created through a custom styles system and if they want to
change certain attributes what they really need to do is change the
style that generated those attributes.
This is why I wanted to disable the menu item. I realize they could
still manage to get the font panel up with focus on the text view. I
just want to create an expectation that it's not _supposed_ to work,
thus it's not a bug. I can't find any way to set that expectation.
thanks,
Todd Ransom
Return Self Software
http://returnself.com
On May 26, 2006, at 3:42 AM, Mike Abdullah wrote:
I would expect it to have no effect and preferably be greyed out.
The font panel "floats." The user can simply leave it open the
whole time if they like. It just may not have any effect on what
they currently have selected.
Mike.
On 24 May 2006, at 21:04PM, Todd Ransom wrote:
If you are in a text view and you press cmd-t and the Font Panel
pops up, what do you expect it to do when you change the font?
Todd Ransom
Return Self Software
http://returnself.com
On May 24, 2006, at 1:33 PM, Mike Abdullah wrote:
I'm not sure you'd want to. If you think about it, the user
could bring the Font panel up from a text field that does allow
it and then just move to editing this other text view. So
logically, there is no point in disabling the menu at any time.
Mike.
On 24 May 2006, at 19:52PM, Todd Ransom wrote:
Is there any way to disable the "Show Fonts..." menu item for a
particular text view? The menu item is hooked up to the shared
NSFontManager instance so I cannot override validateMenuItem:.
So even though I have setUsesFontPanel: NO for my text view my
users don't use that and pressing cmd-t shows a font panel that
does not work. As a matter of fact, you will notice that you can
pop up the font panel at any time in any Cocoa that has this
menu item, even though in many cases it does nothing.
Is there any way to disable this menu item short of hooking it
up to First Responder and dealing with it on a case by case basis?
Todd Ransom
Return Self Software
http://returnself.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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