Re: NSTextView headers and footers?
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.