• 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: NSTextField in many colours
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField in many colours


  • Subject: Re: NSTextField in many colours
  • From: Matt Neuburg <email@hidden>
  • Date: Sat, 23 Sep 2006 13:20:48 -0700
  • Thread-topic: NSTextField in many colours

On Sat, 23 Sep 2006 18:44:18 +0200, "Gerriet M. Denkmann"
<email@hidden> said:
>I have an NSTextField where I do:
>[ textField setAttributedStringValue: stringInManyColours ];
>Works ok.
>
>1. When I select something in this NSTextField, the text turns to
>black. Not really a problem.

No? I'd sure object to that if it happened to me.

>
>But:
>2. From now on the text remains all black, even if it is set again
>with the stringInManyColours.
>This is not acceptable.
>
>So:
>What am I doing wrong?

Perhaps you have neglected to call setAllowsEditingTextAttributes:YES? m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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: NSTextField in many colours
      • From: "Gerriet M. Denkmann" <email@hidden>
  • Prev by Date: Re: How much does NSObject's bind:toObject:withKeyPath:options: do?
  • Next by Date: Re: Cover flow view in Itunes 7.
  • Previous by thread: NSTextField in many colours
  • Next by thread: Re: NSTextField in many colours
  • Index(es):
    • Date
    • Thread