RE: IKImageView weird Zooming behaviour?

2008-05-29 Thread Karl von Moller
Hi to all, Recently I have been exploring what ImageKit has to offer and by and large it's all very cool. However I have an IKImageView which is hooked up in interface builder to "+" and "-" button's in the aim to zooming IN and OUT of the image. So this is being handled by IB and not by

Re: How to change Tool modes programmatically for a Image View?

2008-05-23 Thread Karl von Moller
Many thanks for this. I read through the documentation and some how missed this. I knew there had to be a simple answer and this works perfectly! Cheers Karl [myView setCurrentToolMode:IKToolModeSelect]; which can also be written as myView.currentToolMode = IKToolModeSelect; ___

RE: How to change Tool modes programmatically for a Image View?

2008-05-23 Thread Karl von Moller
Posted this question last night and maybe it was missed by most??!! Hi, I'm trying to find out if it's possible to change the tool mode of an IKImageView's View programmatically? These are the tool modes provided by IKImageView's header file IKToolModeNone; IKToolModeMove; IKToolModeSelect;

RE: programmatically changing IKImageView's tool mode?

2008-05-23 Thread Karl von Moller
I have tried to figure out how to change the tool mode of an IKImageView's View programmatically. I have a simple button setup to cause the change in Mode from the user interface, and at the moment, I'm just printing to the Console what the current mode is. - (IBAction)rotateAction:(id)send

Re: Threading - How its done?

2008-05-06 Thread Karl von Moller
hread safe would using NSOperations to encapsulate them and manage their tasks in the background work? Cheers Karl On 07/05/2008, at 10:43 AM, John Calhoun wrote: On May 6, 2008, at 4:51 PM, Karl von Moller wrote: Does anyone know whether there is a way to get progress info from a PDF loading i

Re: Threading - How its done?

2008-05-06 Thread Karl von Moller
Thanks to all that posted. To the original poster: How much experience do you have with threads? I'm a little confused reading through your posts, I can't tell if you are familiar with pthreads, and just need to figure out NSThreads, or if you have no threading experience at all. As I

Re: Threading - How its done?

2008-05-06 Thread Karl von Moller
I think you are right. It is the PDF loading that appears to be causing the crashing. I think your guess on the previous call to the Thread completing when a new PDF should load is absolutely the problem. Trouble is I really don't know how to implement the Unique ID system you speak of. I m

Re: Threading - How its done?

2008-05-06 Thread Karl von Moller
Yes I tried that only moments ago. I actually went to the trouble of completely rebuilding the Application again by not using Threads. Instead I'm calling everything from the main thread as it were - directly. The application is pretty solid and function without crashes. I also got rid of t

Re: Threading - How its done?

2008-05-06 Thread Karl von Moller
Hi Michael Yes I get this when I change the selection in the table view too quickly: "encountered unexpected object type: 7. missing or invalid object number. invalid `Kids' array: missing or invalid dictionary at index 0." gdb gives all sorts of different reports on what caused it but th

Re: Threading - How its done?

2008-05-05 Thread Karl von Moller
Hi Michael, Thanks for that - I removed the Locks in my code. However I am still getting crashes after I changed my code to this: -(void)openPDFandCreatePreview:(id)sender { //[progressOutlet setUsesThreadedAnimation:YES]; NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] i

Re: Threading - How its done?

2008-05-05 Thread Karl von Moller
Many thanks for your reply on this - much appreciated. I did think it had something to do with the images being swapped out as often the crashes occurred as I quickly changed selection in the table view. Because I know nothing about threading, I resorted to anything to lock the threads. Tha

RE: Threading - How its done?

2008-05-05 Thread Karl von Moller
I create an image representation of the PDF in an imagewell - sorry I forgot to mention this in my brief. It's used to quickly preview a thumbnail of the PDF's first page. Hope this helps Cheers Karl ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

RE: Threading - How its done?

2008-05-05 Thread Karl von Moller
Hi to all, I have been working on a simple application that lists all available PDF's in the Users Documents Folder. I want to fill a Table view with only PDF's that exist at that location. When the User selects one of the PDF files (by highlighting it in the Table View) it is automatical