• 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:PDFPage Creation query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE:PDFPage Creation query


  • Subject: RE:PDFPage Creation query
  • From: "Amrit Majumdar" <email@hidden>
  • Date: Fri, 23 May 2008 14:44:24 +0530

Appologise for shooting an incomplete email earlier!


There are a couple of other queries I have.

1. How to display the thumbnails in a PDFThumbnailView without their
corresponding labels?

2. On double clicking on a PDFPage in an document I want to change the color
of the page,eg. I double click on page 2 of an Doc ,the doc displays all
other pages in their original form except page 2 which is displayed let's
say in blue color.

Right now I have managed to turn all the pages of the Doc to blue and
reflect the change in their corresponding thumbnails.
I have modified the following method in my PDFPage Subclass
 - (void) drawWithBox: (PDFDisplayBox) box

The drawWithBox: contains some code like

          if (b_turnCurrnetPageBlue ) // set to TRUE in mouseDown method

                {

// page is the current page.

                        //NSRect rect = [page boundsForBox:
kPDFDisplayBoxMediaBox];



                        NSRect rect = [self boundsForBox: box];

[[[NSColor blueColor]colorWithAlphaComponent:0.5]  set];

NSRectFillUsingOperation(rect,NSCompositeSourceOver);

}

Now on double clicking on any page in my doc, the entire doc changes in
appearence.How do I identify a single page and apply these changes only to
the particular page ?

Thanks everyone for helping me out till this point.

TIA,
Amrit
_______________________________________________

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: Properties & GC (was Re: Cocoa et al as HCI usability problem)
  • Next by Date: Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)
  • Previous by thread: Re: PDFPage Creation query
  • Next by thread: NSTextField does not lose focus
  • Index(es):
    • Date
    • Thread