I haven't test but -[NSMenuItem setToolTip:] look fine to do this.
Now, just chek if this methods works even when the item is disabled.

Le 6 juil. 08 à 16:31, Peter Zegelin a écrit :

Some of the commenters suggest a tool tip over the disabled menu explaining why it is disabled, which sounds reasonable. As a newby here would this be easy to implement in Cocoa?


On 07/07/2008, at 12:02 AM, Graham Cox wrote:

Wow, I'm really surprised that Joel Spolsky of all people would say this - and so recently too.

I used to like System 7's Balloon Help approach - grey out the menu but the help balloon would explain why it wasn't available (at least in an app that took the trouble to implement this). Sadly, as with many things since hen, in some ways we've gone backwards.

G.


On 6 Jul 2008, at 11:41 pm, Peter Zegelin wrote:

I agree with you but here is JoelOnSoftware saying virtually the complete opposite. http://www.joelonsoftware.com/items/2008/07/01.html . Fortunately most of his commenters disagree.


On 06/07/2008, at 10:21 PM, Graham Cox wrote:

The preferred way to do this is to prevent the user clicking the button if it's not appropriate by greying it out.

This is far more user-friendly than rebuking a user for having the audacity to click your button when they shouldn't have, even though they had no visual cue that they shouldn't. The "permit then rebuke" form of input validation is the hallmark of bad UI design. Sadly, it's all too common.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org

This email sent to [EMAIL PROTECTED]


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to