• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextView: Can't it be disabled?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView: Can't it be disabled?


  • Subject: Re: NSTextView: Can't it be disabled?
  • From: Hiro Fujimoto <email@hidden>
  • Date: Wed, 1 Jun 2005 00:16:13 +0900


Hi, Frederic.

You can disable the NSTextView or NSTextField object but it doesn't
mean gray-drawing text. On these object, 'Disable' means 'not editable'
and 'not selectable' so on. I think this spec is reasonable because the
strings on alert panel should be displayed in black and disable.
If you want to display them in gray color just like other control things,
you can use setTextColor: with setEnabled:.


Good luck.

--

On 2005/05/31, at 23:35, Frédéric BLANC wrote:

   Hi All,


I'm aware NSTextView is not inherited from NSControl; but I'm surprised not to find a method somewhere to *visually* disable this widget in the API... I've also searched in the archives and through Google w/o any success. So, should I look again (b/c it IS there)? Or can someone confirm I won't find anything like this?

If this is the case, is there someone who knows/understands why I
couldn't disable this widget? I've succeeded in disabling any
interaction w/ the text it contains by invoking setSelectable(false)
on my instance; but it still doesn't look that good alongside some
(really) disabled controls (like NSTextField, for example, whose both
content *and* enclosure are "greyed"). IMHO It's just not that
smart...

Note: I'm aware this class is more text-oriented (since inherited from
NSText...) than some text-related controls; however it *does* sport
some visual container and I think it should then be exposed to the
*same* visual alternated representations, shouldn't it? (Do you think
I should post a feature request to Apple's Bug Reporter interface and
ask for the addition of some isEnabled() & setEnabled(boolean)
methods?)

Thanks in advance for any information on this detail,


--
— Frederic BLANC (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:
40mac.com


This email sent to email@hidden


--

hiro FUJIMOTO - developer in Japan.

_______________________________________________
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


  • Follow-Ups:
    • Re: NSTextView: Can't it be disabled?
      • From: Frédéric BLANC <email@hidden>
References: 
 >NSTextView: Can't it be disabled? (From: Frédéric BLANC <email@hidden>)

  • Prev by Date: Re: Custom cell in NSTableView
  • Next by Date: Re: Why is it like this?
  • Previous by thread: NSTextView: Can't it be disabled?
  • Next by thread: Re: NSTextView: Can't it be disabled?
  • Index(es):
    • Date
    • Thread