Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
To thread or not to thread?
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
To thread or not to thread?
Subject
:
To thread or not to thread?
From: Jeremy Hubbell <
email@hidden
>
Date: Mon, 30 Jan 2006 17:40:54 +0900
I have a simple function that randomly generates color values that I'd like to execute when a checkbox is enabled and terminates when the checkbox is unchecked. I tried a while loop using [sender state == 1] but that went into an infinite loop. I couldn't get control of the checkbox again, although checking the NSLog output, the app was happily generating random color values.
I'm quite a beginner to Cocoa programming, but would putting this process on another thread make sense or is there some other way to have this random function run while still allowing the user to interact with the UI?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Follow-Ups
:
Re: To thread or not to thread?
From:
Dado Colussi <email@hidden>
Prev by Date:
Re: KVC broken in 10.4.4 on Intel?
Next by Date:
Re: NSTextField background
Previous by thread:
Re: Menu items disabled - Loading a ui framework from cocoa app
Next by thread:
Re: To thread or not to thread?
Index(es):
Date
Thread