Maybe you solved the problem in the meantime, otherwise I recommend to
use the solution below, which I use in my app - without the if
condition with break - and works fine
Am 26.04.2009 um 18:37 schrieb Trygve Inda:
- (void)threadMethod:(id)anObject
{
NSAutoreleasePool* outterPool = [[NSAu
> Trygve Inda wrote:
>
>> Sorry - what I thought were irrelevant parts were partly removed to
>> keep the
>> email line wrap nice. I'll try to narrow it down some more.
>
>
> Instead of narrowing it down only for emailing, you might actually
> refactor it so the main loop looks more like the par
Trygve Inda wrote:
Sorry - what I thought were irrelevant parts were partly removed to
keep the
email line wrap nice. I'll try to narrow it down some more.
Instead of narrowing it down only for emailing, you might actually
refactor it so the main loop looks more like the paraphrase you
>> - (void)threadMethod:(id)anObject
>> {
>> NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init];
>>
>> NSDictionary* userDefaults = [NSUserDefaults standardUserDefaults]
>> importantValue = [[userDefaults objectForKey:@"myKey"] boolValue];
>
> +standardUserDefaults don't re
> 2009/4/26 Trygve Inda :
>> - (void)threadMethod:(id)anObject
>> {
>> NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init];
>>
>> NSDictionary* userDefaults = [NSUserDefaults standardUserDefaults]
>> importantValue = [[userDefaults objectForKey:@"myKey"] boolValue];
>>
>>
> - (void)threadMethod:(id)anObject
> {
> NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init];
>
> NSDictionary* userDefaults = [NSUserDefaults standardUserDefaults]
> importantValue = [[userDefaults objectForKey:@"myKey"] boolValue];
+standardUserDefaults don't return no dic
2009/4/26 Trygve Inda :
> - (void)threadMethod:(id)anObject
> {
> NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init];
>
> NSDictionary* userDefaults = [NSUserDefaults standardUserDefaults]
> importantValue = [[userDefaults objectForKey:@"myKey"] boolValue];
>
> while (1)
>
2009/4/26 Trygve Inda :
>> - (void)threadMethod:(id)anObject
>> {
>> NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init];
>>
>> NSDictionary* userDefaults = [NSUserDefaults standardUserDefaults]
>> importantValue = [[userDefaults objectForKey:@"myKey"] boolValue];
>>
>>
> - (void)threadMethod:(id)anObject
> {
>NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init];
>
>NSDictionary*userDefaults = [NSUserDefaults standardUserDefaults]
>importantValue = [[userDefaults objectForKey:@"myKey"] boolValue];
>
> while (1)
> {
>
- (void)threadMethod:(id)anObject
{
NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init];
NSDictionary*userDefaults = [NSUserDefaults standardUserDefaults]
importantValue = [[userDefaults objectForKey:@"myKey"] boolValue];
while (1)
{
NSAutorelease
10 matches
Mail list logo