• 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: NSTextView headers and footers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView headers and footers?


  • Subject: Re: NSTextView headers and footers?
  • From: Mike Ferris <email@hidden>
  • Date: Mon, 16 Dec 2002 16:56:32 -0800

I would recommend not trying to do this in an NSTextView subclass. I think the best way to approach it is similar to the MultiplePageView in TextEdit. This is used when you are in Wrap to Page mode. MultiplePageView is a larger containing view (the MultiplePageView) that handles paginating (with enough pages to fit the content of the text) and creating the content NSTextViews for the pages. You could easily add more subviews or drawing logic to this to create running make headers and footers.

Mike Ferris

Begin forwarded message:

From: Steve Gehrman <email@hidden>
Date: Mon Dec 16, 2002 3:57:32 PM US/Pacific
To: email@hidden
Subject: NSTextView headers and footers?

Is there a simple way to add headers and footers on a NSTextView?

I would like to start with the TextEdit Code and add the page number to every page for example. I could subclass NSTextView and override drawRect, but was wondering if there is a build in way of adding headers or footers.

-steve
_______________________________________________
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.
_______________________________________________
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.

References: 
 >NSTextView headers and footers? (From: Steve Gehrman <email@hidden>)

  • Prev by Date: Writing nested dictionary fails
  • Next by Date: Re: Writing nested dictionary fails
  • Previous by thread: NSTextView headers and footers?
  • Next by thread: Specific table column causes problems in NSTableViews
  • Index(es):
    • Date
    • Thread