Thanks to all that provided code examples and suggestions on
programming for concurrency.
I am reading the docs to learn more on this subject.
Jim Merkel
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mod
Hi James,
I recently finished a file routing app that does a lot of heavy duty operations
to files and found that the combination of
NSInvocationOperations/NSOperationQueue to be really programmer friendly.
Among the stuff my app does is copy large image files from A to B, creates
thumbnails
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/20/11 8:57 PM, James Merkel wrote:
> Ok, I see GCD == Grand Central Dispatch. Available on Snow Leopard.
> I'm on 10.5.8. I'll probably have to buy a new machine and get back to
> you on this!
Ruh-roh.
If you need to support pre-SL, you can go w
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/20/11 8:43 PM, James Merkel wrote:
> First of all (kind of basic) what is GCD ?
Sorry, I shouldn't just throw acronyms around. GCD stands for "Grand
Central Dispatch" - Apple's newest technology for concurrent
programming. It has a relatively
On Jun 20, 2011, at 8:43 PM, James Merkel wrote:
On Jun 20, 2011, at 7:23 PM, Conrad Shultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/20/11 3:54 PM, James Merkel wrote:
I'm opening all digital camera files in a folder (JPEG, TIF, etc),
extracting a thumbnail and some Exif
On Jun 20, 2011, at 11:43 PM, James Merkel wrote:
>
>
> On Jun 20, 2011, at 7:23 PM, Conrad Shultz wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On 6/20/11 3:54 PM, James Merkel wrote:
>>> I'm opening all digital camera files in a folder (JPEG, TIF, etc),
>>> extracting
On Jun 20, 2011, at 7:23 PM, Conrad Shultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/20/11 3:54 PM, James Merkel wrote:
I'm opening all digital camera files in a folder (JPEG, TIF, etc),
extracting a thumbnail and some Exif data, and putting the data in a
TableView. The time
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/20/11 3:54 PM, James Merkel wrote:
> I'm opening all digital camera files in a folder (JPEG, TIF, etc),
> extracting a thumbnail and some Exif data, and putting the data in a
> TableView. The time consuming part is finding the thumbnails in the f
On Jun 20, 2011, at 3:33 PM, Conrad Shultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/20/11 3:17 PM, James Merkel wrote:
I am trying to come up with a way of not using threads (because of
the
potential problems). All I really want to do is give the user a way
of
canceling t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/20/11 3:17 PM, James Merkel wrote:
> I am trying to come up with a way of not using threads (because of the
> potential problems). All I really want to do is give the user a way of
> canceling the long process. I was thinking of just sampling a ca
On Jun 20, 2011, at 2:05 PM, Greg Parker wrote:
On Jun 20, 2011, at 11:47 AM, James Merkel wrote:
Another question -- when should a progress indicator be put up? The
length of time in my processing loop can very greatly. I could be
processing 3 files or 300 files. It seems a waste to flash
On Jun 20, 2011, at 11:47 AM, James Merkel wrote:
> Another question -- when should a progress indicator be put up? The length of
> time in my processing loop can very greatly. I could be processing 3 files or
> 300 files. It seems a waste to flash a progress indicator for very short
> processin
On Jun 20, 2011, at 12:05 PM, Conrad Shultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/20/11 11:47 AM, James Merkel wrote:
On Jun 20, 2011, at 2:01 AM, Mike Abdullah wrote:
On 20 Jun 2011, at 09:31, James Merkel wrote:
Yeah, I just kind of avoided the basic problem. The
On Jun 20, 2011, at 11:47, James Merkel wrote:
> Upon further investigation I see that the beach ball does finally appear.
> I guess the question is, what is the definition of unresponsive? An app will
> always have short unresponsive periods when it is doing something.
I try to relate it to vis
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/20/11 11:47 AM, James Merkel wrote:
>
> On Jun 20, 2011, at 2:01 AM, Mike Abdullah wrote:
>
>>
>> On 20 Jun 2011, at 09:31, James Merkel wrote:
>>
>>> Yeah, I just kind of avoided the basic problem. The app isn't
>>> receiving at least some eve
On Jun 20, 2011, at 2:01 AM, Mike Abdullah wrote:
On 20 Jun 2011, at 09:31, James Merkel wrote:
Yeah, I just kind of avoided the basic problem. The app isn't
receiving at least some events -- for example the menus can't be
pulled down. On the other hand, the spinning beach ball doesn't
On Jun 20, 2011, at 1:14 AM, Kyle Sluder wrote:
> I look forward to the day when OS X automatically kills beachballing programs
> after a certain time, a la iOS. Because then maybe iTunes will finally get
> rewritten.
Ditto for Safari.
___
Cocoa-de
On 20 Jun 2011, at 09:31, James Merkel wrote:
> Yeah, I just kind of avoided the basic problem. The app isn't receiving at
> least some events -- for example the menus can't be pulled down. On the other
> hand, the spinning beach ball doesn't appear, and I can drag the progress
> window arou
It turns out if I use setUsesThreadedAnimation:YES on the progress
indicator, the bar indicator animates.
The docs say this method sets a hint as to whether the receiver should
implement animation of the progress indicator in a separate thread. I
guess the hint is taken and the animation i
Yeah, I just kind of avoided the basic problem. The app isn't
receiving at least some events -- for example the menus can't be
pulled down. On the other hand, the spinning beach ball doesn't
appear, and I can drag the progress window around.
I'll have to see if a cancel button will work.
On Jun 20, 2011, at 12:36 AM, James Merkel wrote:
> It turns out if I use setUsesThreadedAnimation:YES on the progress indicator,
> the bar indicator animates.
>
> The docs say this method sets a hint as to whether the receiver should
> implement animation of the progress indicator in a separa
On Jun 19, 2011, at 1:27 PM, Quincey Morris wrote:
On Jun 19, 2011, at 13:14, James Merkel wrote:
ProgressController * progressController = nil;
progressController =[[ProgressController alloc] init];
NSLog(@"Progress window: %@\n", [progressController window]);
On Jun 19, 2011, at 13:14, James Merkel wrote:
> ProgressController * progressController = nil;
> progressController =[[ProgressController alloc] init];
> NSLog(@"Progress window: %@\n", [progressController window]);
> [progressController startProgressAnimation];
>
On Sun, Jun 19, 2011 at 1:14 PM, James Merkel wrote:
> Then use the progress indicator as follows;
>
> ProgressController * progressController = nil;
> progressController =[[ProgressController alloc] init];
> NSLog(@"Progress window: %@\n", [progressController window]);
>
24 matches
Mail list logo