I want to use different combinations of paragraph styles in
nstextview .
for example : combination of linespacing, paragraphspacing,
headindent and
tailindent . These all styles must be activated in a single
operation ,such
as in a single buttonclick etc.
You'll want to work with the text storage of the text view and apply
the paragraph styles to the text as necessary. Before you modify any
attributes of the storage you'll want to call
"shouldChangeTextInRange:replacementString:" and afterwards
"didChangeText" if you want undo and editing restrictions handled for
you. A single change would look something like this: