• 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
how to know current page?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to know current page?


  • Subject: how to know current page?
  • From: norio <email@hidden>
  • Date: Wed, 27 Feb 2008 10:48:02 +0900

Hi,

I'm wondering how to know current printing page in drawPageBorderWithSize?

Here's my drawPageBorderWithSize of my view:

- (void)drawPageBorderWithSize:(NSSize)borderSize
{
unsigned long pageNum = [[NSPrintOperation currentOperation] currentPage];


  NSLog (@"%ld",pageNum);
}

But the pageNum was still zero.

Would you tell me what I'm missing?

Best regards,
Norio Ota
_______________________________________________

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


  • Prev by Date: Re: Can CoreData return only unique results of an attribute
  • Next by Date: Re: [NSBezierPath fillRect:[self bounds]] question
  • Previous by thread: Re: [NSBezierPath fillRect:[self bounds]] question
  • Next by thread: NSTextField and NSTextAttachment
  • Index(es):
    • Date
    • Thread