Re: firstLineHeadIndent item in NSParagraphStyle dictionary
Re: firstLineHeadIndent item in NSParagraphStyle dictionary
- Subject: Re: firstLineHeadIndent item in NSParagraphStyle dictionary
- From: "Ewan Delanoy" <email@hidden>
- Date: Fri, 3 Aug 2007 17:13:02 +0200 (CEST)
- Importance: Normal
You're absolutely right, Martin : since I implemented your suggestion, my
subclass does exactly what I want. Thank you very much ! I guess the moral
is, "do not override an accessor if you already have a modifier method
available."
Ewan
*****************************************************************************************
>> I have an NSTextView subclass that has an additional (float) ivar
>> "indentWidth" and overrides the -defaultParagraphStyle method
>
> I haven't tried it, but probably you should not override that method.
> Instead construct your alternate NSParagraphStyle and then use the
> method "setDefaultParagraphStyle".
>
> ~Martin
>
>
_______________________________________________
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