• 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
Clicking in an attributed TextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clicking in an attributed TextField


  • Subject: Clicking in an attributed TextField
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 9 Feb 2008 16:52:39 +0700

I have (10.4.11) a very simple app, which has one window with one NSTextField (selectable, not editable) and one NSButton.
When I click the button, a colourful text is put into the textfield ([ textField setAttributedStringValue: colouredString ]).


The textField has no fieldEditor ( [ testWindow fieldEditor: NO forObject: textField ] == nil ).

So far all is fine.

Now, when I click in the textField, a fieldEditor is created (an NSTextView).
But:
None of the attributes of my colouredString gets copied into the textStorage of the fieldEditor. It just uses the default system font (LucidaGrande 13pt.) and the system text colour (black).


How can this be avoided?

Kind reagrds,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Prev by Date: Re: newbie alert: i'm confused: The XCode Quick Tour Guide
  • Next by Date: Re: What's the story with OSAScriptController and OSAScriptView.
  • Previous by thread: Re: CoreData: Save password securly
  • Next by thread: Re: Clicking in an attributed TextField
  • Index(es):
    • Date
    • Thread