FROM : Christiaan Hofman
DATE : Mon May 05 00:17:12 2008
Hi list,
I'm struggling with a very weird problem. I have a method that sort of
looks as follows:
- (id)doSomething:(id)argument {
NSLog(@"before");
id value = callCFunction(argument);
NSLog(@"after");
// rest of the method
return value;
}
I don't think it should really matter what the c-function is or the
precise method name or the rest of the implementation (right?) Anyway,
when this method is called, I see the log for "before", but not
"after". So apparently the C-function callCFunction implicitly
returns! AFAIK this should not be possible. Or am I wrong? I am
totally lost. Anyone have an idea?
Thanks,
Christiaan
DATE : Mon May 05 00:17:12 2008
Hi list,
I'm struggling with a very weird problem. I have a method that sort of
looks as follows:
- (id)doSomething:(id)argument {
NSLog(@"before");
id value = callCFunction(argument);
NSLog(@"after");
// rest of the method
return value;
}
I don't think it should really matter what the c-function is or the
precise method name or the rest of the implementation (right?) Anyway,
when this method is called, I see the log for "before", but not
"after". So apparently the C-function callCFunction implicitly
returns! AFAIK this should not be possible. Or am I wrong? I am
totally lost. Anyone have an idea?
Thanks,
Christiaan
| Related mails | Author | Date |
|---|---|---|
| Christiaan Hofman | May 5, 00:17 | |
| Scott Stevenson | May 5, 00:38 | |
| Markus Hitter | May 5, 00:49 | |
| JanakiRam | May 6, 19:43 | |
| Christiaan Hofman | May 6, 22:49 | |
| Andrew Merenbach | May 6, 23:39 |






Cocoa mail archive

