• 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: firstLineHeadIndent item in NSParagraphStyle dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >firstLineHeadIndent item in NSParagraphStyle dictionary (From: "Ewan Delanoy" <email@hidden>)
 >Re: firstLineHeadIndent item in NSParagraphStyle dictionary (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Re: [SOLVED] Loading NSFont from file
  • Next by Date: Making my own constants for Cocoa structs
  • Previous by thread: Re: firstLineHeadIndent item in NSParagraphStyle dictionary
  • Next by thread: Re: Mixing Static and Dynamic Librararies, Multiple Definitions of Symbol, Two-Level Namespace
  • Index(es):
    • Date
    • Thread