[Drawkit] Minor framework issues
Graham Cox
graham.cox at bigpond.com
Fri May 16 21:49:27 PDT 2008
On 17 May 2008, at 4:42 am, Brad Larson wrote:
> DKDrawing+Paper.h is not an included header with the framework,
> which can cause problems if you want to reference the default paper
> sizes. For example, [DKDrawing isoA2PaperSize:NO] is used in the
> default makeDefaultDrawing method in DKDrawingDocument, which you
> may want to override for your application's own new documents.
OK, I obviously forgot to add that header to the list (that was
recently factored from DKDrawing). Thanks for telling me!
> I know that you do not wish for the framework to be garbage-
> collected only, but I think it would be a good idea to change the
> build option for Objective-C Garbage Collection to Supported from
> its current Unsupported to allow garbage-collected applications to
> make use of it.
At this stage no testing has been done to see if using DK garbage-
collected just works or if there are issues. So while I see no reason
why this would cause a problem, it is untested at the moment.
> Also, the DrawDemo freezes when displaying the File | Save dialog or
> a sheet asking the user to save a document before quitting, yet my
> own DrawKit-based application works just fine in those cases. I
> can't seem to find the problem, but it may be related to the XCode
> 3.1 beta 5 that I'm running as a build environment on this machine.
Hmmmm. I have seen this problem when building against the 10.5 SDK in
the past, though I had thought it was fixed. However, for the moment I
recommend that you build against the 10.4u SDK. You don't lose any
functionality at all, but Cocoa on 10.5 will make sure that everything
is called compatibly. If you link with 10.5 it assumes you are
prepared to correctly deal with UTIs and other things which, again,
are not extensively tested right now. I believe this bug is related to
UTIs but I'm not 100% sure.
cheers, Graham
More information about the Drawkit
mailing list