• 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
Subclassing NSPrintPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subclassing NSPrintPanel


  • Subject: Subclassing NSPrintPanel
  • From: Glenn Zelniker <email@hidden>
  • Date: Mon, 26 Nov 2007 11:33:24 -0500

I need to make a simple modification to NSPrintPanel. Because my app deals with documents whose pages might have non-numeric names (e.g., Cover, 22A, iii), I'd like the "Copies & Pages" pane's NSTextFields to be able to display/accept values other than integers. I realize that I can endow my NSPrintPanel with an accessory view, but what I'd really like to do is replace the Copies & Pages pane with one of my own. But I'd still like to retain all the other panes, for obvious reasons. There doesn't seem to be too much in the API for NSPrintPanel that'll let me do this and I really, really don't want to have to make my own custom print panel from scratch. Scouring the docs and the web for solutions hasn't helped much -- the best I can come up with is creating an NSPrintInfo object with a modified dictionary, but even that won't let me set the start and end pages to anything other than NSNumbers.

Has anyone here confronted this problem before?

Glenn Zelniker

_______________________________________________

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


  • Follow-Ups:
    • Re: Subclassing NSPrintPanel
      • From: Dave Camp <email@hidden>
  • Prev by Date: Re: Creating subviews programmatically ?
  • Next by Date: Re: UTI's and document packages
  • Previous by thread: Re: Creating subviews programmatically ?
  • Next by thread: Re: Subclassing NSPrintPanel
  • Index(es):
    • Date
    • Thread