Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The right way to hide warning icons (controls)



On 31/7/03 at 6:29 pm, Andrew O. Mellinger said:

> I've have a little warning icon that appears next to w textfield when
> the user doesn't have valid information entered, and I'd like to
> show/hide that as they get the correct info.

Obligatory mention of NSFormatters goes here, just in case. :)

> What is the "right" way to do this in Cocoa? Move offscreen? Change
> the image? (I'm using an NSImageView.) I tried the use a toggle
> button, but I couldn't disable it without making my icon grey.

I'd just set its image to nil.


Cheers,
-Matt

--
Matt Gemmell
Irate Scotsman
http://www.scotlandsoftware.com/blog/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >The right way to hide warning icons (controls) (From: "Andrew O. Mellinger" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.