Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8007255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:46:03+00:00 2026-06-04T17:46:03+00:00

I am a newbie for MAC development, I have a simple Cocoa Application using

  • 0

I am a newbie for MAC development, I have a simple Cocoa Application using NSViewController where I have a main view and 2 NSViewController and dynamically flipping them. I have added PDFView on NSViewController view to show pdf pages flipping at run time. but my problem when the views are added dynamically then on PDFView I can see the pdf page after resizing the window. I tried using [[pdfViewOutlet1 view] setNeedsDisplay:YES]; for both the views.

FirstView *FirstViewController = [[FirstView alloc] initWithNibName:kFirstView bundle:nil];

[FirstViewController setPdfDoc:pdfDoc];
[FirstViewController setPageCnt:pageCnt];
self.myCurrentViewController = FirstViewController;
[[_myCurrentViewController view] setNeedsDisplay:YES];
[transition setSubtype:kCATransitionFromLeft];

[[_myTargetView animator] addSubview: [_myCurrentViewController view]];

and in the awakeFromNib: method of first view I have:

if(pdfDoc==nil )
        return;

[pdfViewOutlet1 setDisplayMode: kPDFDisplaySinglePageContinuous]; //kPDFDisplaySinglePage or    kPDFDisplayTwoUp;
[pdfViewOutlet1 setDocument:pdfDoc];

NSRect myRect = { { 0,0 }, { 450, 200 } };
[pdfViewOutlet1  setFrame: myRect];

[pdfViewOutlet1 goToPage: [[pdfViewOutlet1 document] pageAtIndex: pageCnt]];
[pdfDoc release];
[[pdfViewOutlet1 view] setNeedsDisplay:YES];

How can I see the pdf pages without resizing the views using mouse?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:46:05+00:00Added an answer on June 4, 2026 at 5:46 pm

    the issue is solved, i was using setWantsLayer on my Parent view which was creating the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm quite a newbie to Cocoa & Mac programming. I have a WebView and
I'm a newbie to ObjC/Cocoa and Mac development in general, and toying with the
I have come across this Cocoa application (source code) that shows a main Window.
I'm a total newbie to programming in cocoa for the mac so this question
I have this Mac application that consists of 2 files: firstFile.tst secondFile I would
Newbie question. I’m writing an ASP.Net MVC app in VB.Net and have been using
I am an Objective-C newbie, who still does not have a Mac, but still
Warning: I'm a Cocoa newbie. I'm reading Cocoa Programming For Mac OS X by
I'm a newbie Cocoa developer and I'm developing my first application. I want to
iPhone sdk 3.1.2, xcode 3.1.4, mac os x 10.5.8, I'm a newbie using OCUnit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.