• 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
NSTextView and font sizes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView and font sizes?


  • Subject: NSTextView and font sizes?
  • From: Alex Rice <email@hidden>
  • Date: Mon, 20 Jan 2003 23:09:07 -0700

I have subclassed NSTextView and am using insertText: to layout a bunch of NSAttributedStrings. Like this

NSAttributedString *nameStr = [[[NSAttributedString alloc]
initWithString: name
attributes: attrs] autorelease];
[self insertText: nameStr];

attrs has a font object set for the key NSFontAttributeName. What I am seeing is that the font is correctly rendered in the NSTextView, but the font size is thrown out. The font size is definitely correct in the font object that's set in attrs. What am I missing here?

Thanks,

Alex Rice <email@hidden> | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSTextView and font sizes?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: sudo?
  • Next by Date: Re: Leaking Memory
  • Previous by thread: Re: sudo?
  • Next by thread: Re: NSTextView and font sizes?
  • Index(es):
    • Date
    • Thread