• 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: How to use NSPrintHeaderAndFooter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use NSPrintHeaderAndFooter


  • Subject: Re: How to use NSPrintHeaderAndFooter
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 12 Jul 2006 01:57:18 -0400

short answer?

if you put it there it'll get called.

I'm not sure that I'd necessarily set a user default like that from the init method of a view.. if you want it program wide, I think it probably should be in the application delegate's applicationDidFinishLaunching: implementation (assuming you have one, which you probably do).. or even better a user-settable preference


On Jul 12, 2006, at 1:50 AM, email@hidden wrote:

The NSTextView is being created in the nib, so initWithFrame:... is
never
called. m.

Matt is probably right (assuming that is how you create the text view instance of course).

Thanks to you both Matt and Scott. So the short answer is, "the code
should be put in awakeFromNib:" ?



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: How to use NSPrintHeaderAndFooter (From: Matt Neuburg <email@hidden>)
 >Re: How to use NSPrintHeaderAndFooter (From: Scott Anguish <email@hidden>)
 >Re: How to use NSPrintHeaderAndFooter (From: email@hidden)

  • Prev by Date: Re: How to use NSPrintHeaderAndFooter
  • Next by Date: Re: NSSearchField in toolbar strange drawing
  • Previous by thread: Re: How to use NSPrintHeaderAndFooter
  • Next by thread: Re: How to use NSPrintHeaderAndFooter
  • Index(es):
    • Date
    • Thread