• 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: Problems with Attributed Strings and NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with Attributed Strings and NSTextField


  • Subject: Re: Problems with Attributed Strings and NSTextField
  • From: Frank Midgley <email@hidden>
  • Date: Thu, 3 Nov 2005 10:40:10 -0600

On Nov 2, 2005, at 12:34PM, email@hidden wrote:

I need some features on NSTextField.
I created an NSAttributedString, but I can't set NSTextField with that value with setStringValue; xCode tells me incompatible pointer type.


How can I set the Interline of a string?

Use -[NSTextField setAttributedStringValue:] instead. Attributed strings are not a sub-class of regular strings. They are a completely different kind of NSObject that have a string as one of their values.


-Frank

------------------------------------
Frank M. Midgley
email@hidden
http://homepage.mac.com/knarf/


_______________________________________________ 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
References: 
 >Problems with Attributed Strings and NSTextField (From: email@hidden)

  • Prev by Date: Re: Image loading bug out of nowhere...
  • Next by Date: [Moderator] Re: Cocoa Developer wanted [...]
  • Previous by thread: Problems with Attributed Strings and NSTextField
  • Next by thread: Dependent keys - non-cascading?
  • Index(es):
    • Date
    • Thread