Re: Xcode 4.1 GM exception raised in PDFkit
Re: Xcode 4.1 GM exception raised in PDFkit
- Subject: Re: Xcode 4.1 GM exception raised in PDFkit
- From: Chris Idou <email@hidden>
- Date: Mon, 01 Aug 2011 05:42:08 -0700 (PDT)
You should clarify what you mean by 'it crashes'. If you just mean a breakpoint is hit, then it doesn't sound like a big deal. If you actually mean it crashes, like with a seg fault or something, it sounds like a bug.
----- Original Message -----
From: Martin Hewitson <email@hidden>
To: email@hidden
Cc:
Sent: Monday, 1 August 2011 9:19 PM
Subject: Xcode 4.1 GM exception raised in PDFkit
Dear list,
I think this is a bug, but I'd be interested in comments before I submit it.
1) Create a new Cocoa project in Xcode (no core-data, non-document).
2) Add a PDFview to the main window
3) Make an outlet property in the app delegate and connect to the PDFview
4) Add Quartz framework to the project
5) Include <Quartz/Quartz.h> in app delegate interface
6) In -applicationDidFinishLaunching: init a PDFDocument with some pdf file on disk
7) Set the pdf document to the PDFview
This all works fine.
Now switch on an "all exceptions" breakpoint and the app crashes. I actually came across this in a real app and was able to reproduce it with the simple attached project. If you run the app outside Xcode then it works fine (of course). This didn't happen in earlier versions of Xcode 4 on 10.6.
Cheers,
Martin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden