[Drawkit] New To list & DrawKit

Dick Applebaum dicklacara at mac.com
Sat Jul 5 12:50:49 PDT 2008


Strange situation!

I applied the fix and the Demo worked... for a while.

I was able to load some images, clone some styles, trace/draw shapes,  
save and open files.

Then, it stopped working with:

    2008-07-05 12:12:52.512 GCDrawDemo[51213:10b] *** -[NSCFArray  
insertObject:atIndex:]: attempt to insert nil

when I tried to open the drawing files I created.

It also gives the same message when I try to open many of the Test  
Docs such as:

   Basic Map Symbols.drawing
   Booyakasha.drawing
   Dimension Lines.drawing

I am not proficient enough (yet) to figure out what's happening.  I  
did spend several hours trying to figure out what was happening and  
where?

No luck.

So I did a complete reinstall-- same results.

Looked around for residual application support files-- couldn't find  
any.

Time Machine restored to a prior (working) copy-- same results.

Now, here is the strange part:  I can run the demo from another  
machine (same, latest version of all Apple software).  I access the  
drawing files from the original  Mac over WiFi and they work as  
expected.

This tells me that it is unlikely that the drawing files are corrupted.

I would like to get it running on the first Mac (faster, bigger  
screen, etc).

Thoughts?


TIA

Dick

On Jul 3, 2008, at 7:49 PM, Graham Cox wrote:

>
> On 4 Jul 2008, at 12:37 pm, Dick Applebaum wrote:
>
>> Hi.
>>
>> I am new to this list & DrawKit!
>
> Welcome ;-)
>
>> Still, I can't save files (or even change the drawing size & grid  
>> params)... beach ball of death!
>>
>>
>> Thoughts?
>
> Ah, yes. Try building using the 10.4uSDK build setting. There is a  
> problem with Beta 3 and the 10.5 SDK. If you prefer, you can fix the  
> problem code, which is in DKGradient.m. the function cmpColorStops  
> should be changed to:
>
> static int cmpColorStops (DKColorStop* lh, DKColorStop* rh, void  
> *context)
> {
> 	#pragma unused(context)
> 	
> 	float lp = [lh position];
> 	float rp = [rh position];
> 	
> 	//NSLog(@"positions: %f, %f", lp, rp );
> 	
> 	if (lp < rp)
> 		return NSOrderedAscending;
> 	else if (lp > rp)
> 		return NSOrderedDescending;
> 	else
> 		return NSOrderedSame;
> }
>
> (the difference is the object types of the function parameters).
>
> This might seem completely unrelated to the issue you're having, but  
> trust me ;-) If you are interested in the history of this, the list  
> archives will reveal all.
>
>
> cheers, Graham
>
> _______________________________________________
> Drawkit mailing list
> Drawkit at lists.apptree.net
> http://lists.apptree.net/listinfo.cgi/drawkit-apptree.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.apptree.net/pipermail/drawkit-apptree.net/attachments/20080705/2ae26f61/attachment.htm>


More information about the Drawkit mailing list