• 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: Saving ruler markers to defaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving ruler markers to defaults


  • Subject: Re: Saving ruler markers to defaults
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 19 Aug 2002 14:01:45 -0700

On Monday, August 19, 2002, at 01:39 PM, Jeremy Dronfield wrote:

Well, I'm fine with archiving, if only I knew how get the paragraph style in the first place. Sorry to be a pest about this, but I've been through every attributed string, text, layout and view document I can think of, and nowhere can I find a method which returns the paragraph style of a piece of text. How do you do it?

It's the value of the NSParagraphStyleAttributeName attribute on an attributed string--in particular, if you have an NSTextView, the relevant attributed string is the text view's textStorage. If the value of the attribute is nil, that means the default paragraph style is in effect.

Douglas Davidson
_______________________________________________
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: Saving ruler markers to defaults [SOLVED]
      • From: Jeremy Dronfield <email@hidden>
References: 
 >Re: Saving ruler markers to defaults (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Re: HotKeys in Cocoa
  • Next by Date: Re: HotKeys in Cocoa
  • Previous by thread: Re: Saving ruler markers to defaults
  • Next by thread: Re: Saving ruler markers to defaults [SOLVED]
  • Index(es):
    • Date
    • Thread