FROM : Keith Duncan
DATE : Wed Nov 21 18:40:11 2007
I'm writing an NSOperation subclass which completes it's work
asynchronously. As such I'm going to have to write a concurrent
operation.
The problem I have is that I don't want to have to setup my own
'runtime environment', quoted from the docs:
"In your start method, you must prepare the operation for execution,
which includes preparing the runtime environment for your operation.
(For example, if you wanted to create a thread yourself, you would do
it here.) Once your runtime environment is established, you can call
any methods or functions you want to subsequently start your
operation. Your implementation of the start method should not invoke
super."
I simply need to mark the operation as complete when it receives an
NSNotification. I could setup a thread but that seems a little
pointless since that NSOperation is supposed to handle it automatically.
- Keith
DATE : Wed Nov 21 18:40:11 2007
I'm writing an NSOperation subclass which completes it's work
asynchronously. As such I'm going to have to write a concurrent
operation.
The problem I have is that I don't want to have to setup my own
'runtime environment', quoted from the docs:
"In your start method, you must prepare the operation for execution,
which includes preparing the runtime environment for your operation.
(For example, if you wanted to create a thread yourself, you would do
it here.) Once your runtime environment is established, you can call
any methods or functions you want to subsequently start your
operation. Your implementation of the start method should not invoke
super."
I simply need to mark the operation as complete when it receives an
NSNotification. I could setup a thread but that seems a little
pointless since that NSOperation is supposed to handle it automatically.
- Keith
| Related mails | Author | Date |
|---|---|---|
| Keith Duncan | Nov 21, 18:40 | |
| Shawn Erickson | Nov 21, 18:50 | |
| Keith Duncan | Nov 21, 19:57 | |
| Shawn Erickson | Nov 21, 20:08 | |
| Keith Duncan | Nov 21, 20:50 | |
| Hsu | Nov 22, 01:07 | |
| Keith Duncan | Nov 22, 12:48 | |
| Chris Kane | Nov 24, 23:14 |






Cocoa mail archive

