I'm having some difficulties with NSPageController, and was hoping there is a cocoa expert on this list that could help.
1. I have a layer-backed view as the content of a page within a NSPageController. Everything works fine, however, compared to a simple layer-backed, empty, (blue background via self.layer.backgroundColor) NSView, the swipe animation kicks in very late. It's as if the snapshot taken by the private code within NSPageController takes a long time to complete. Does anyone knows why this could be occurring? My "complicated" layer-backed view contains multiple layer-backed subviews with transparencies, shadows, etc. In addition, it uses drawRect: to draw gridlines. It should be noted that under normal operation (i.e. when not history-swiping), I'm getting frame rates between 40-60fps -- so the drawing and subview positioning is probably not the bottleneck. 2. Is it correct that NSPageController misbehaves when the content view in question has an opengl context, e.g. NSOpenGLView? By misbehaving, I mean that swipes don't animate with the sliding effect, and instead move straight to the previous/next page. It's as if the private code in NSPageController wasn't able to take a snapshot of the view's state before the swipe. 3. It appears that there is a bug in NSPageController where the first object in the history list does not appear. This can be easily tested by downloading the PictureSwiper test project, and inserting a break statement in the if-statement within the for-loop in applicationDidFinishLaunching:. In theory, we should then have one picture displayed -- however, there is none. If we break after two iterations through the loop, we do see a picture, and we can scroll back to the previous picture. Is this a known bug? Many thanks in advance, Martin Percossi zenAud.io _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
