Using addTimeInterval in NSDate

I am just learning Objective-C programming. I have built a small Window with an NSDatePicker and two buttons. I want the buttons to increase/decrease the date in the DatePicker by 1 day. Here is the code I put together:
@implementation CASDateIncrementor
- (IBAction)DownOneDay:(id)sender {
NSTimeInterval secondsPerDay = 24 * 60 * 60;
[DateToUse setDateValue:[NSDate addTimeInterval:secondsPerDay]];
It compiles with these warnings;
/Users/casdvm/Desktop/Date Mover/CASDateIncrementor.m:6: warning: 'NSDate' may not respond to '+addTimeInterval:'
/Users/casdvm/Desktop/Date Mover/CASDateIncrementor.m:6: warning: (Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.)
The Console has this to say:
2008-03-19 07:02:51.473 Date Mover[2080:10b] * +[NSDate addTimeInterval:]: unrecognized selector sent to class 0xa0987940
The application indeed runs, but nothing happens when a button is pressed.
Alternatively, if I use this code:
NSTimeInterval secondsPerDay = 24 * 60 * 60;
[DateToUse setDateValue:[NSDate dateWithTimeIntervalSinceNow:secondsPerDay]];
It works as advertised, in that the date in the DatePicker is increased by a single day with the correct button press. Of course, it only works once, since now the date is not current.
I really did not think that this was going to be too terribly difficult; is there some syntactical reason that my addTimeInterval code is not working, or is the method dysfunctional? I do not understand the *Messages without a matching method signature* error and cannot locate advice on how to approach it.
Any advice or counsel is appreciated.

I think the problem you're having is that addTimeInterval functions on an actual NSDate variable by adding seconds to an existing date. But you're effectively applying it to the abstract NSDate type which is not instantiated. The dateWithTimeIntervalSinceNow works because it returns a value all on its own instead of adding or altering an existing value.
NSTimeInterval secondsPerDay = 24 * 60 * 60;
NSDate *today = [NSDate date];
NSDate *tomorrow;
tomorrow = [today addTimeInterval:secondsPerDay];
This works because today is an actual variable. What you're doing is essentially saying "int + 5" rather than "int x = 0; x+ 5;"
Hope that's clear. Also if you post your code bracketed by { code } markers (without the spaces) it will make you code more readable like mine above.
=Tod

Similar Messages

  • NSDate, NSTimeInterval, Calculating time passed and Core Data

    I'm creating a timesheet/stopwatch application of sorts for the iPhone.
    I am using an NSDate in CoreData and following this pattern:
    1) Start:
    Session* session = (Session*)\[NSEntityDescription insertNewObjectForEntityForName:@"Session" inManagedObjectContext:managedObjectContext_\];
    session.startTime = \[NSDate date\];
    2) Calculate time passed and update label:
    NSTimeInterval timeDiff = -1*\[session.startTime timeIntervalSinceNow\];
    cell.textLabel.text = \[NSString stringWithFormat:@"%f", timeDiff\];
    I also see that I could use:
    NSTimeInterval timeDiff = \[\[NSDate date\] timeIntervalSinceDate:session.startTime\];
    cell.textLabel.text = \[NSString stringWithFormat:@"%f", timeDiff\];
    I don't like this since it is needlessly creating a lot of dates - and there could be 100s of these timers running at the same time ... or, does timeIntervalSinceNow possibly also create a new date evertime under the covers and I'm pre-optimizing or something too early. Can anyone suggest a better way to do this? For instance, initially, I was simply using NSTimeInterval:
    NSTimeInterval startTime = \[NSDate timeIntervalSinceReferenceDate\];
    NSTimeInterval endTime = \[NSDate timeIntervalSinceReferenceDate\] - startTime;
    But I end up struggling with the best way to manage this as part of a CoreData entity. Should I uses a double? or a Date? I understand that a Date is implemented as an NSTimeInterval but I can't assign or subtract an NSTimeInterval directly to my entity.date
    session.startTime = \[NSDate timeIntervalSinceReferenceDate\];
    NSTimeInterval timeDiff = \[NSDate timeIntervalSinceReferenceDate\] - session.startTime;
    Obviously, this won't compile when startTime is a Date object but I think it illustrates what I'm after. Trying to 'lightly' calculate time passed by using the start time assigned to an Entity. Maybe the original way is just fine. I'm just looking for suggestions. I guess I could try running this inside a profiler. As a side note, is there a better way to print the stopwatch output to the screen? It seems like overkill to constantly update a Label's text property ... hundreds, maybe thousands of times especially when there may be 10 or so timers running on the same screen. Does anyone have any advice for stopwatch type 'update the time' label behavior?
    I'm doing this in an NSTimer potentially set to fire every .01s ... IE: this method will get hit quite a bit ...
    Thanks.
    Message was edited by: LutherBaker

    LutherBaker wrote:
    I don't like this since it is needlessly creating a lot of dates - and there could be 100s of these timers running at the same time ... Can anyone suggest a better way to do this?
    That doesn't sound good. Why would you have so many?
    I'm just looking for suggestions. I guess I could try running this inside a profiler. As a side note, is there a better way to print the stopwatch output to the screen? It seems like overkill to constantly update a Label's text property ... hundreds, maybe thousands of times especially when there may be 10 or so timers running on the same screen. Does anyone have any advice for stopwatch type 'update the time' label behavior?
    I'm doing this in an NSTimer potentially set to fire every .01s ... IE: this method will get hit quite a bit ...
    That doesn't seem like a side note. That seems like the main point.
    As "good" video is typically around 30 frames per second, it doesn't make any sense to update the user interface any more frequently than that. Also, you really only need one timer. Let that timer update all the values. You may not need any timers. You could do everything via key-value coding and let the OS handle all the work.

  • How to convert UIView object to NSData and vise-versa  for saving it in database using sqlite

    I am using sqlite for my project which stores all the data including text fields , id , and one UIVIew object in a column having BLOB datatype .
    Now while retriving the data i use
    const char *raw = sqlite3_column_blob(selectstmt, 3);
    int rawLen = sqlite3_column_bytes(selectstmt, 3);
    NSData *data = [NSData dataWithBytes:raw length:rawLen];
      view =[NSKeyedUnarchiver unarchiveObjectWithData:data];
    where data is NSData obj n view is UIView obj ,
    also while inserting data  i use ,
    NSData *data=[[NSData alloc]init];
        data=[NSKeyedArchiver archivedDataWithRootObject:view];
       // [data dataForView:notes.view];
        sqlite3_bind_blob(updateStmt, 2, [data bytes], [data length], SQLITE_TRANSIENT);
    But this is not working properly ...  the Data object is giving some length,
    while using the view the view object is null
    is there any other solution to do the same ?

    There's a ton of information here: [http://www.json.org/] and I can't believe you didn't find that site yourself.

  • Is it secure to use NSData or NSString for storing confidential information?

    Hi,
    I am developing an iPhone App where i need to store confidential information such as "Certificate", "User name and Password", "Secret key", etc.
    Can i use NSData or NSString to store these data in order to use them in some exexpression in my code ?
    Thanks,

    Hi,
    Thanks for your reply,
    Actually i learnt from Java that 'String' type data doesn't get cleared/erased when it is released. So in Java 'byte array' is more secure way to save confidential information.
    I thought similar problem might have with NSString as well?
    please comment!
    Thanks,

  • Safari quit unexpectedly while using the CosmoPod plugin

    I've treid updating and installed the latest version. But still couldn't open Safari browser. Someone pls help.....
    This is the message that appeared..... Apparently it says: "Safari quit unexpectedly while using the CosmoPod plugin."
    Process:         Safari [613]
    Path:            /Users/kelvinwys/Desktop/Safari.app/Contents/MacOS/Safari
    Identifier:      com.apple.Safari
    Version:         5.1 (6534.50)
    Build Info:      WebBrowser-75345000~1
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [90]
    PlugIn Path:       /Library/Application Support/SIMBL/Plugins/CosmoPod.bundle/Contents/MacOS/CosmoPod
    PlugIn Identifier: com.cocoamug.CosmoPod
    PlugIn Version:    ??? (4.5.1)
    Date/Time:       2011-08-09 17:42:41.673 +0800
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          16286 sec
    Crashes Since Last Report:           7
    Per-App Interval Since Last Report:  15781 sec
    Per-App Crashes Since Last Report:   7
    Anonymous UUID:                      D7DDE776-1A78-4547-AF35-7007233C0201
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Application Specific Information:
    abort() called
    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[BrowserDocument browserWindowController]: unrecognized selector sent to instance 0x1001c6230'
    *** Call stack at first throw:
        0   CoreFoundation                      0x00007fff868377b4 __exceptionPreprocess + 180
        1   libobjc.A.dylib                     0x00007fff80a78f03 objc_exception_throw + 45
        2   CoreFoundation                      0x00007fff86891110 +[NSObject(NSObject) doesNotRecognizeSelector:] + 0
        3   CoreFoundation                      0x00007fff8680991f ___forwarding___ + 751
        4   CoreFoundation                      0x00007fff86805a68 _CF_forwarding_prep_0 + 232
        5   CosmoPod                            0x0000000114e604fd -[CPToolbar cp_validate] + 829
        6   CosmoPod                            0x0000000114e60d57 -[CPToolbar cp_toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:] + 1114
        7   AppKit                              0x00007fff87bbb79b -[NSToolbar _newItemFromDelegateWithItemIdentifier:propertyListRepresentation:willBeInserte dIntoToolbar:] + 150
        8   AppKit                              0x00007fff87bb9943 -[NSToolbar _newItemFromItemIdentifier:propertyListRepresentation:requireImmediateLoad:will BeInsertedIntoToolbar:] + 273
        9   AppKit                              0x00007fff87bb97c0 -[NSToolbar _insertNewItemWithItemIdentifier:atIndex:propertyListRepresentation:notifyFlags :] + 57
        10  CosmoPod                            0x0000000114e394b7 -[CPManager installToolbar] + 584
        11  CosmoPod                            0x0000000114e39194 -[CPManager init] + 1449
        12  CosmoPod                            0x0000000114e39734 +[CPManager sharedController] + 71
        13  libobjc.A.dylib                     0x00007fff80a72ff1 call_load_methods + 162
        14  libobjc.A.dylib                     0x00007fff80a72d31 load_images + 220
        15  ???                                 0x00007fff5fc0315a 0x0 + 140734799819098
        16  ???                                 0x00007fff5fc0bcdd 0x0 + 140734799854813
        17  ???                                 0x00007fff5fc0bda6 0x0 + 140734799855014
        18  ???                                 0x00007fff5fc08fbb 0x0 + 140734799843259
        19  libSystem.B.dylib                   0x00007fff8700ae40 dlopen + 61
        20  CoreFoundation                      0x00007fff867d0f27 _CFBundleDlfcnLoadBundle + 231
        21  CoreFoundation                      0x00007fff867cfec7 _CFBundleLoadExecutableAndReturnError + 1191
        22  Foundation                          0x00007fff8505a445 _NSBundleLoadCode + 638
        23  Foundation                          0x00007fff85059d68 -[NSBundle loadAndReturnError:] + 742
        24  Foundation                          0x00007fff8506b6fc -[NSBundle principalClass] + 38
        25  SIMBL                               0x0000000114e1483b +[SIMBL loadBundle:] + 99
        26  SIMBL                               0x0000000114e14746 +[SIMBL installPlugins] + 426
        27  SIMBL                               0x0000000114e1356f InjectEventHandler + 96
        28  OpenScripting                       0x00007fff8261ca2e _ZL17EventHandlerThunkPK6AEDescPS_Pv + 149
        29  AE                                  0x00007fff89c3c32b _Z20aeDispatchAppleEventPK6AEDescPS_jPh + 162
        30  AE                                  0x00007fff89c3c224 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 32
        31  AE                                  0x00007fff89c3c12b aeProcessAppleEvent + 210
        32  HIToolbox                           0x00007fff84c33619 AEProcessAppleEvent + 48
        33  AppKit                              0x00007fff87b6f095 _DPSNextEvent + 1191
        34  AppKit                              0x00007fff87b6e801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
        35  Safari                              0x00007fff802a5452 -[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 177
        36  AppKit                              0x00007fff87b3468f -[NSApplication run] + 395
        37  AppKit                              0x00007fff87b2d3b0 NSApplicationMain + 364
        38  Safari                              0x00007fff8045ff62 SafariMain + 200
        39  Safari                              0x0000000100000f1c 0x0 + 4294971164
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   libSystem.B.dylib                 0x00007fff870530b6 __kill + 10
    1   libSystem.B.dylib                 0x00007fff870f39f6 abort + 83
    2   libstdc++.6.dylib                 0x00007fff860655d2 __tcf_0 + 0
    3   libobjc.A.dylib                   0x00007fff80a7cb39 _objc_terminate + 100
    4   libstdc++.6.dylib                 0x00007fff86063ae1 __cxxabiv1::__terminate(void (*)()) + 11
    5   libstdc++.6.dylib                 0x00007fff86063b16 __cxxabiv1::__unexpected(void (*)()) + 0
    6   libstdc++.6.dylib                 0x00007fff86063bfc __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
    7   libobjc.A.dylib                   0x00007fff80a78fa2 object_getIvar + 0
    8   com.apple.CoreFoundation          0x00007fff86891110 +[NSObject(NSObject) doesNotRecognizeSelector:] + 0
    9   com.apple.CoreFoundation          0x00007fff8680991f ___forwarding___ + 751
    10  com.apple.CoreFoundation          0x00007fff86805a68 _CF_forwarding_prep_0 + 232
    11  com.cocoamug.CosmoPod             0x0000000114e604fd -[CPToolbar cp_validate] + 829
    12  com.cocoamug.CosmoPod             0x0000000114e60d57 -[CPToolbar cp_toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:] + 1114
    13  com.apple.AppKit                  0x00007fff87bbb79b -[NSToolbar _newItemFromDelegateWithItemIdentifier:propertyListRepresentation:willBeInserte dIntoToolbar:] + 150
    14  com.apple.AppKit                  0x00007fff87bb9943 -[NSToolbar _newItemFromItemIdentifier:propertyListRepresentation:requireImmediateLoad:will BeInsertedIntoToolbar:] + 273
    15  com.apple.AppKit                  0x00007fff87bb97c0 -[NSToolbar _insertNewItemWithItemIdentifier:atIndex:propertyListRepresentation:notifyFlags :] + 57
    16  com.cocoamug.CosmoPod             0x0000000114e394b7 -[CPManager installToolbar] + 584
    17  com.cocoamug.CosmoPod             0x0000000114e39194 -[CPManager init] + 1449
    18  com.cocoamug.CosmoPod             0x0000000114e39734 +[CPManager sharedController] + 71
    19  libobjc.A.dylib                   0x00007fff80a72ff1 call_load_methods + 162
    20  libobjc.A.dylib                   0x00007fff80a72d31 load_images + 220
    21  dyld                              0x00007fff5fc0315a dyld::notifySingle(dyld_image_states, ImageLoader const*) + 344
    22  dyld                              0x00007fff5fc0bcdd ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 221
    23  dyld                              0x00007fff5fc0bda6 ImageLoader::runInitializers(ImageLoader::LinkContext const&) + 58
    24  dyld                              0x00007fff5fc08fbb dlopen + 573
    25  libSystem.B.dylib                 0x00007fff8700ae40 dlopen + 61
    26  com.apple.CoreFoundation          0x00007fff867d0f27 _CFBundleDlfcnLoadBundle + 231
    27  com.apple.CoreFoundation          0x00007fff867cfec7 _CFBundleLoadExecutableAndReturnError + 1191
    28  com.apple.Foundation              0x00007fff8505a445 _NSBundleLoadCode + 638
    29  com.apple.Foundation              0x00007fff85059d68 -[NSBundle loadAndReturnError:] + 742
    30  com.apple.Foundation              0x00007fff8506b6fc -[NSBundle principalClass] + 38
    31  net.culater.SIMBL.osax            0x0000000114e1483b +[SIMBL loadBundle:] + 99
    32  net.culater.SIMBL.osax            0x0000000114e14746 +[SIMBL installPlugins] + 426
    33  net.culater.SIMBL.osax            0x0000000114e1356f InjectEventHandler + 96
    34  com.apple.openscripting           0x00007fff8261ca2e EventHandlerThunk(AEDesc const*, AEDesc*, void*) + 149
    35  com.apple.AE                      0x00007fff89c3c32b aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 162
    36  com.apple.AE                      0x00007fff89c3c224 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 32
    37  com.apple.AE                      0x00007fff89c3c12b aeProcessAppleEvent + 210
    38  com.apple.HIToolbox               0x00007fff84c33619 AEProcessAppleEvent + 48
    39  com.apple.AppKit                  0x00007fff87b6f095 _DPSNextEvent + 1191
    40  com.apple.AppKit                  0x00007fff87b6e801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
    41  com.apple.Safari.framework        0x00007fff802a5452 -[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 177
    42  com.apple.AppKit                  0x00007fff87b3468f -[NSApplication run] + 395
    43  com.apple.AppKit                  0x00007fff87b2d3b0 NSApplicationMain + 364
    44  com.apple.Safari.framework        0x00007fff8045ff62 SafariMain + 200
    45  com.apple.Safari                  0x0000000100000f1c 0x100000000 + 3868
    Thread 1:  Dispatch queue: com.apple.libdispatch-manager
    0   libSystem.B.dylib                 0x00007fff8701dc0a kevent + 10
    1   libSystem.B.dylib                 0x00007fff8701fadd _dispatch_mgr_invoke + 154
    2   libSystem.B.dylib                 0x00007fff8701f7b4 _dispatch_queue_invoke + 185
    3   libSystem.B.dylib                 0x00007fff8701f2de _dispatch_worker_thread2 + 252
    4   libSystem.B.dylib                 0x00007fff8701ec08 _pthread_wqthread + 353
    5   libSystem.B.dylib                 0x00007fff8701eaa5 start_wqthread + 13
    Thread 2:
    0   libSystem.B.dylib                 0x00007fff8701ea2a __workq_kernreturn + 10
    1   libSystem.B.dylib                 0x00007fff8701ee3c _pthread_wqthread + 917
    2   libSystem.B.dylib                 0x00007fff8701eaa5 start_wqthread + 13
    Thread 3:  WebCore: IconDatabase
    0   libSystem.B.dylib                 0x00007fff8703fa6a __semwait_signal + 10
    1   libSystem.B.dylib                 0x00007fff87043881 _pthread_cond_wait + 1286
    2   com.apple.WebCore                 0x00007fff82f28749 WebCore::IconDatabase::syncThreadMainLoop() + 265
    3   com.apple.WebCore                 0x00007fff82f25c88 WebCore::IconDatabase::iconDatabaseSyncThread() + 296
    4   libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    5   libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 4:
    0   libSystem.B.dylib                 0x00007fff87004d7a mach_msg_trap + 10
    1   libSystem.B.dylib                 0x00007fff870053ed mach_msg + 59
    2   com.apple.QuartzCore              0x00007fff86ab4396 CA::Render::Server::server_thread(void*) + 177
    3   com.apple.QuartzCore              0x00007fff86ab42d6 thread_fun + 34
    4   libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    5   libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 5:
    0   libSystem.B.dylib                 0x00007fff8701ea2a __workq_kernreturn + 10
    1   libSystem.B.dylib                 0x00007fff8701ee3c _pthread_wqthread + 917
    2   libSystem.B.dylib                 0x00007fff8701eaa5 start_wqthread + 13
    Thread 6:  Safari: SpinningProgressIndicator
    0   libSystem.B.dylib                 0x00007fff87004d7a mach_msg_trap + 10
    1   libSystem.B.dylib                 0x00007fff870053ed mach_msg + 59
    2   com.apple.CoreFoundation          0x00007fff867d2932 __CFRunLoopRun + 1698
    3   com.apple.CoreFoundation          0x00007fff867d1dbf CFRunLoopRunSpecific + 575
    4   com.apple.Foundation              0x00007fff8505bc64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270
    5   com.apple.Foundation              0x00007fff8505bb43 -[NSRunLoop(NSRunLoop) run] + 77
    6   com.apple.Safari.framework        0x00007fff80498abc -[Heartbeat _startHeartbeatRunLoop] + 244
    7   com.apple.Foundation              0x00007fff85021204 __NSThread__main__ + 1429
    8   libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    9   libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 7:  Safari: SafeBrowsingManager
    0   libSystem.B.dylib                 0x00007fff87046aea pread + 10
    1   libsqlite3.dylib                  0x00007fff8a4bf09c unixRead + 44
    2   libsqlite3.dylib                  0x00007fff8a4c2ec0 sqlite3PagerAcquire + 1312
    3   libsqlite3.dylib                  0x00007fff8a4d722c checkTreePage + 252
    4   libsqlite3.dylib                  0x00007fff8a4d7321 checkTreePage + 497
    5   libsqlite3.dylib                  0x00007fff8a4d7321 checkTreePage + 497
    6   libsqlite3.dylib                  0x00007fff8a535eed sqlite3VdbeExec + 31725
    7   libsqlite3.dylib                  0x00007fff8a539798 sqlite3_step + 1384
    8   com.apple.Safari.framework        0x00007fff8049d006 Safari::SQLiteStatement::step() + 28
    9   com.apple.Safari.framework        0x00007fff8046df15 Safari::SafeBrowsingStore::checkIntegrity() + 51
    10  com.apple.Safari.framework        0x00007fff8046e32e Safari::SafeBrowsingStore::initDatabase() + 104
    11  com.apple.Safari.framework        0x00007fff8046e3d8 Safari::SafeBrowsingStore::getListID(Safari::SString const&, int&) + 38
    12  com.apple.Safari.framework        0x00007fff8046e471 Safari::SafeBrowsingStore::addList(Safari::SString const&) + 35
    13  com.apple.Safari.framework        0x00007fff8046647b Safari::SafeBrowsingListManager::SafeBrowsingListManager(Safari::SafeBrowsingSe rvice&, ***::Vector<Safari::SString, 0ul> const&, Safari::SString const&, Safari::SString const&) + 433
    14  com.apple.Safari.framework        0x00007fff80466882 Safari::SafeBrowsingListManager::create(Safari::SafeBrowsingService&, ***::Vector<Safari::SString, 0ul> const&, Safari::SString const&, Safari::SString const&) + 78
    15  com.apple.Safari.framework        0x00007fff8046c71f Safari::SafeBrowsingService::didReceiveListNames(***::Vector<Safari::SString, 0ul> const&) + 35
    16  com.apple.Safari.framework        0x00007fff803dfcb6 Safari::GoogleSafeBrowsingService::initialize() + 294
    17  com.apple.Safari.framework        0x00007fff8046801a Safari::SafeBrowsingManager::addGoogleSafeBrowsingService() + 122
    18  com.apple.Safari.framework        0x00007fff80468206 Safari::SafeBrowsingManager::handleMessage(Safari::SafeBrowsingManager::SafeBro wsingMessage*) + 214
    19  com.apple.Safari.framework        0x00007fff80418e07 Safari::MessageRunLoop::dispatchMessage() + 49
    20  com.apple.CoreFoundation          0x00007fff867d4401 __CFRunLoopDoSources0 + 1361
    21  com.apple.CoreFoundation          0x00007fff867d25f9 __CFRunLoopRun + 873
    22  com.apple.CoreFoundation          0x00007fff867d1dbf CFRunLoopRunSpecific + 575
    23  com.apple.Safari.framework        0x00007fff80418d39 Safari::MessageRunLoop::threadBody() + 107
    24  com.apple.Safari.framework        0x00007fff80418d73 Safari::MessageRunLoop::threadCallback(void*) + 9
    25  libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    26  libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 8:  QTKit: listenOnDelegatePort
    0   libSystem.B.dylib                 0x00007fff87004d7a mach_msg_trap + 10
    1   libSystem.B.dylib                 0x00007fff870053ed mach_msg + 59
    2   com.apple.CoreFoundation          0x00007fff867d2932 __CFRunLoopRun + 1698
    3   com.apple.CoreFoundation          0x00007fff867d1dbf CFRunLoopRunSpecific + 575
    4   com.apple.CoreFoundation          0x00007fff867d1b46 CFRunLoopRun + 70
    5   com.apple.QTKit                   0x00007fff80c29d20 listenOnDelegatePort + 425
    6   libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    7   libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 9:  QTKit: listenOnNotificationPort
    0   libSystem.B.dylib                 0x00007fff87004d7a mach_msg_trap + 10
    1   libSystem.B.dylib                 0x00007fff870053ed mach_msg + 59
    2   com.apple.CoreFoundation          0x00007fff867d2932 __CFRunLoopRun + 1698
    3   com.apple.CoreFoundation          0x00007fff867d1dbf CFRunLoopRunSpecific + 575
    4   com.apple.CoreFoundation          0x00007fff867d1b46 CFRunLoopRun + 70
    5   com.apple.QTKit                   0x00007fff80c28f38 listenOnNotificationPort + 383
    6   libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    7   libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 10:  QTKit: QTCALayerRendererPendingQWorkLoop
    0   libSystem.B.dylib                 0x00007fff87004d7a mach_msg_trap + 10
    1   libSystem.B.dylib                 0x00007fff870053ed mach_msg + 59
    2   com.apple.CoreFoundation          0x00007fff867d2932 __CFRunLoopRun + 1698
    3   com.apple.CoreFoundation          0x00007fff867d1dbf CFRunLoopRunSpecific + 575
    4   com.apple.CoreFoundation          0x00007fff867d1b46 CFRunLoopRun + 70
    5   com.apple.QTKit                   0x00007fff80b5c428 QTCALayerRendererPendingQWorkLoop + 546
    6   libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    7   libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 11:  QTKit: QTMachPortImageProviderWorkLoop
    0   libSystem.B.dylib                 0x00007fff87004d7a mach_msg_trap + 10
    1   libSystem.B.dylib                 0x00007fff870053ed mach_msg + 59
    2   com.apple.CoreFoundation          0x00007fff867d2932 __CFRunLoopRun + 1698
    3   com.apple.CoreFoundation          0x00007fff867d1dbf CFRunLoopRunSpecific + 575
    4   com.apple.CoreFoundation          0x00007fff867d1b46 CFRunLoopRun + 70
    5   com.apple.QTKit                   0x00007fff80c2b4bc QTMachPortImageProviderWorkLoop + 364
    6   libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    7   libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 12:  QTKit: QTClassicMovieControllerViewNeedsDisplayWorkLoop
    0   libSystem.B.dylib                 0x00007fff87004d7a mach_msg_trap + 10
    1   libSystem.B.dylib                 0x00007fff870053ed mach_msg + 59
    2   com.apple.CoreFoundation          0x00007fff867d2932 __CFRunLoopRun + 1698
    3   com.apple.CoreFoundation          0x00007fff867d1dbf CFRunLoopRunSpecific + 575
    4   com.apple.CoreFoundation          0x00007fff867d1b46 CFRunLoopRun + 70
    5   com.apple.QTKit                   0x00007fff80bb533e QTClassicMovieControllerViewNeedsDisplayWorkLoop + 313
    6   libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    7   libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 13:
    0   libSystem.B.dylib                 0x00007fff87004d7a mach_msg_trap + 10
    1   libSystem.B.dylib                 0x00007fff870053ed mach_msg + 59
    2   com.apple.CoreFoundation          0x00007fff867d2932 __CFRunLoopRun + 1698
    3   com.apple.CoreFoundation          0x00007fff867d1dbf CFRunLoopRunSpecific + 575
    4   com.apple.CFNetwork               0x00007fff89bb7923 CFURLConnectionSendSynchronousRequest + 439
    5   com.apple.Foundation              0x00007fff85177c2d +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 132
    6   com.apple.Foundation              0x00007fff8504b7ca -[NSData(NSData) initWithContentsOfURL:] + 183
    7   com.apple.Foundation              0x00007fff8504f9ab +[NSArray(NSArray) newWithContentsOf:immutable:] + 128
    8   com.cocoamug.CosmoPod             0x0000000114e39883 -[CP_PreferencesController loadAndSynchronize] + 143
    9   com.apple.Foundation              0x00007fff85021204 __NSThread__main__ + 1429
    10  libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    11  libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 14:
    0   libSystem.B.dylib                 0x00007fff87004dc2 semaphore_wait_signal_trap + 10
    1   libSystem.B.dylib                 0x00007fff8700a40d pthread_mutex_lock + 469
    2   com.apple.Foundation              0x00007fff85013691 -[NSRecursiveLock lock] + 25
    3   com.apple.Foundation              0x00007fff85019130 +[NSBundle bundleForClass:] + 89
    4   com.cocoamug.CosmoPod             0x0000000114e3c0b2 -[CP_PreferencesController lastestVersion] + 189
    5   com.apple.Foundation              0x00007fff85021204 __NSThread__main__ + 1429
    6   libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    7   libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 15:
    0   libSystem.B.dylib                 0x00007fff87004d7a mach_msg_trap + 10
    1   libSystem.B.dylib                 0x00007fff870053ed mach_msg + 59
    2   libSystem.B.dylib                 0x00007fff87010dfd _notify_server_register_check + 150
    3   libSystem.B.dylib                 0x00007fff87010c77 notify_register_check + 295
    4   libSystem.B.dylib                 0x00007fff8701d37a pthread_once + 95
    5   com.apple.CFNetwork               0x00007fff89b78d91 _CFNetworkCopySystemProxySettings + 28
    6   com.apple.CFNetwork               0x00007fff89b78b8d HTTPProtocol::startLoad() + 385
    7   com.apple.CFNetwork               0x00007fff89b7875c URLConnectionLoader::loaderScheduleOriginLoad(_CFURLRequest const*) + 304
    8   com.apple.CFNetwork               0x00007fff89bf008e URLConnectionLoader::LoaderConnectionEventQueue::processAllEventsAndConsumePayl oad(XConnectionEventInfo<XLoaderEvent, XLoaderEventParams>*, long) + 248
    9   com.apple.CFNetwork               0x00007fff89b785fb URLConnectionLoader::processEvents() + 99
    10  com.apple.CFNetwork               0x00007fff89b754b2 MultiplexerSource::perform() + 160
    11  com.apple.CoreFoundation          0x00007fff867d4401 __CFRunLoopDoSources0 + 1361
    12  com.apple.CoreFoundation          0x00007fff867d25f9 __CFRunLoopRun + 873
    13  com.apple.CoreFoundation          0x00007fff867d1dbf CFRunLoopRunSpecific + 575
    14  com.apple.Foundation              0x00007fff850a023f +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 297
    15  com.apple.Foundation              0x00007fff85021204 __NSThread__main__ + 1429
    16  libSystem.B.dylib                 0x00007fff8703dfd6 _pthread_start + 331
    17  libSystem.B.dylib                 0x00007fff8703de89 thread_start + 13
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x0000000000000000  rbx: 0x00007fff70cf02f8  rcx: 0x00007fff5fbfe128  rdx: 0x0000000000000000
      rdi: 0x0000000000000265  rsi: 0x0000000000000006  rbp: 0x00007fff5fbfe140  rsp: 0x00007fff5fbfe128
       r8: 0x00007fff70cf3a60   r9: 0x0000000000000063  r10: 0x00007fff8704f0fa  r11: 0x0000000000000206
      r12: 0x00007fff868bcb09  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x00000001001c6230
      rip: 0x00007fff870530b6  rfl: 0x0000000000000206  cr2: 0x00007fff709d1fd0
    Binary Images:
           0x100000000 -        0x100000fff  com.apple.Safari 5.1 (6534.50) <1F791A92-0E1B-FA63-8447-AD69C689F0D3> /Users/kelvinwys/Desktop/Safari.app/Contents/MacOS/Safari
           0x114e12000 -        0x114e15fff +net.culater.SIMBL.osax 0.9.7 (0.9.7) <9ADEE334-3BF3-DE9C-868A-D9C3B80DC2CB> /Library/ScriptingAdditions/SIMBL.osax/Contents/MacOS/SIMBL
           0x114e1a000 -        0x114e7cfe7 +com.cocoamug.CosmoPod ??? (4.5.1) <EF96AA2F-284E-117C-E42A-AF1E1F8EF67A> /Library/Application Support/SIMBL/Plugins/CosmoPod.bundle/Contents/MacOS/CosmoPod
           0x114eb7000 -        0x114f9dfe7  libcrypto.0.9.7.dylib 0.9.7 (compatibility 0.9.7) <26FC56A6-EFD6-22FA-E1F1-4E1BA61C85BB> /usr/lib/libcrypto.0.9.7.dylib
           0x114ff5000 -        0x115001ff7 +com.growl.growlframework 1.2.1 (1.2.1) <40462CEC-EE57-4FAD-A138-221D365DC5E4> /Library/Application Support/SIMBL/Plugins/CosmoPod.bundle/Contents/Frameworks/Growl.framework/Versi ons/A/Growl
        0x7fff5fc00000 -     0x7fff5fc3bdef  dyld 132.1 (???) <B536F2F1-9DF1-3B6C-1C2C-9075EA219A06> /usr/lib/dyld
        0x7fff80034000 -     0x7fff80046fe7  libsasl2.2.dylib 3.15.0 (compatibility 3.0.0) <76B83C8D-8EFE-4467-0F75-275648AFED97> /usr/lib/libsasl2.2.dylib
        0x7fff80047000 -     0x7fff80205ff7  com.apple.ImageIO.framework 3.0.4 (3.0.4) <0A4F51A1-4502-767B-8A4E-F14C6214EF88> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
        0x7fff80206000 -     0x7fff8020cff7  com.apple.DiskArbitration 2.3 (2.3) <857F6E43-1EF4-7D53-351B-10DE0A8F992A> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
        0x7fff80245000 -     0x7fff80a6efef  com.apple.Safari.framework 6534 (6534.50) <5E989098-BEA0-9DF9-EDFA-CF05BDDEB895> /System/Library/PrivateFrameworks/Safari.framework/Versions/A/Safari
        0x7fff80a6f000 -     0x7fff80b25ff7  libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <03140531-3B2D-1EBA-DA7F-E12CC8F63969> /usr/lib/libobjc.A.dylib
        0x7fff80b26000 -     0x7fff80b4dff7  libJPEG.dylib ??? (???) <46A413EA-4FD1-A050-2EF0-6279F3EAD581> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
        0x7fff80b4e000 -     0x7fff80cbefff  com.apple.QTKit 7.7 (1783) <DE8DB97C-C058-B40C-492B-D652A30CF571> /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit
        0x7fff80cbf000 -     0x7fff80cdfff7  com.apple.DirectoryService.Framework 3.6 (621.11) <AD76C757-6701-BDB5-631E-1CB77D669586> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
        0x7fff80ce0000 -     0x7fff80cecfff  libbz2.1.0.dylib 1.0.5 (compatibility 1.0.0) <6FB0A8F4-72A1-D28F-E801-DE2C7498AFB9> /usr/lib/libbz2.1.0.dylib
        0x7fff80ced000 -     0x7fff80dcafff  com.apple.vImage 4.1 (4.1) <C3F44AA9-6F71-0684-2686-D3BBC903F020> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
        0x7fff80dcb000 -     0x7fff80e57fef  SecurityFoundation ??? (???) <6860DE26-0D42-D1E8-CD7C-5B42D78C1E1D> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
        0x7fff80e58000 -     0x7fff80ed7fe7  com.apple.audio.CoreAudio 3.2.6 (3.2.6) <79E256EB-43F1-C7AA-6436-124A4FFB02D0> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
        0x7fff80ed8000 -     0x7fff80f1ffff  com.apple.QuickLookFramework 2.3 (327.6) <11DFB135-24A6-C0BC-5B97-ECE352A4B488> /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook
        0x7fff810df000 -     0x7fff81129ff7  com.apple.Metadata 10.6.3 (507.15) <2EF19055-D7AE-4D77-E589-7B71B0BC1E59> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
        0x7fff8112a000 -     0x7fff8116ffff  com.apple.CoreMediaIOServices 140.0 (1496) <D93293EB-0B84-E97D-E78C-9FE8D48AF58E> /System/Library/PrivateFrameworks/CoreMediaIOServices.framework/Versions/A/Core MediaIOServices
        0x7fff81170000 -     0x7fff81274ff7  com.apple.PubSub 1.0.5 (65.28) <C99BB1FE-46EA-237F-55A3-48CC2FE1F755> /System/Library/Frameworks/PubSub.framework/Versions/A/PubSub
        0x7fff8134e000 -     0x7fff81795fef  com.apple.RawCamera.bundle 3.7.1 (570) <5AFA87CA-DC3D-F84E-7EA1-6EABA8807766> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
        0x7fff81830000 -     0x7fff81c74fef  libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <E14EC4C6-B055-A4AC-B971-42AB644E4A7C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
        0x7fff81c75000 -     0x7fff81c7aff7  com.apple.CommonPanels 1.2.4 (91) <4D84803B-BD06-D80E-15AE-EFBE43F93605> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
        0x7fff81ed4000 -     0x7fff81fb9fef  com.apple.DesktopServices 1.5.11 (1.5.11) <39FAA3D2-6863-B5AB-AED9-92D878EA2438> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
        0x7fff81fd3000 -     0x7fff81fecfff  com.apple.CFOpenDirectory 10.6 (10.6) <CCF79716-7CC6-2520-C6EB-A4F56AD0A207> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpen Directory.framework/Versions/A/CFOpenDirectory
        0x7fff8202e000 -     0x7fff8203cff7  libkxld.dylib ??? (???) <8145A534-95CC-9F3C-B78B-AC9898F38C6F> /usr/lib/system/libkxld.dylib
        0x7fff8203d000 -     0x7fff8208cfef  libTIFF.dylib ??? (???) <1E2593D1-A7F6-84C6-DF8F-0B46AE445926> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
        0x7fff8208d000 -     0x7fff820a3fe7  com.apple.MultitouchSupport.framework 207.11 (207.11) <8233CE71-6F8D-8B3C-A0E1-E123F6406163> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/Multit ouchSupport
        0x7fff821a5000 -     0x7fff821f1fff  libauto.dylib ??? (???) <F7221B46-DC4F-3153-CE61-7F52C8C293CF> /usr/lib/libauto.dylib
        0x7fff821f2000 -     0x7fff821f4fff  com.apple.print.framework.Print 6.1 (237.1) <CA8564FB-B366-7413-B12E-9892DA3C6157> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
        0x7fff821f5000 -     0x7fff82236fef  com.apple.CoreMedia 0.484.52 (484.52) <3F868AF8-1089-10C3-DCEB-565690FD9742> /System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia
        0x7fff82237000 -     0x7fff822d7fff  com.apple.LaunchServices 362.3 (362.3) <B90B7C31-FEF8-3C26-BFB3-D8A48BD2C0DA> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
        0x7fff822d8000 -     0x7fff82474fff  com.apple.WebKit 6534 (6534.50) <05AEA122-3F31-0F56-4AA6-E84140C53785> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
        0x7fff82475000 -     0x7fff82480ff7  com.apple.speech.recognition.framework 3.11.1 (3.11.1) <5CA110A2-0712-F774-E7CF-AA7A2A106DAC> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
        0x7fff82481000 -     0x7fff824b2fff  libGLImage.dylib ??? (???) <7F102A07-E4FB-9F52-B2F6-4E2D2383CA13> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
        0x7fff824ba000 -     0x7fff824bbfff  liblangid.dylib ??? (???) <EA4D1607-2BD5-2EE2-2A3B-632EEE5A444D> /usr/lib/liblangid.dylib
        0x7fff824bc000 -     0x7fff824c1fff  libGFXShared.dylib ??? (???) <1D0D3531-9561-632C-D620-1A8652BEF5BC> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.d ylib
        0x7fff824c2000 -     0x7fff82552fff  com.apple.SearchKit 1.3.0 (1.3.0) <3403E658-A54E-A79A-12EB-E090E8743984> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
        0x7fff82553000 -     0x7fff82608fe7  com.apple.ink.framework 1.3.3 (107) <FFC46EE0-3544-A459-2AB9-94778A75E3D4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
        0x7fff82609000 -     0x7fff82609ff7  com.apple.Accelerate.vecLib 3.6 (vecLib 3.6) <DA9BFF01-40DF-EBD5-ABB7-787DAF2D77CF> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
        0x7fff8260a000 -     0x7fff82625ff7  com.apple.openscripting 1.3.1 (???) <2243C17C-EE36-D5B6-3A3E-8258973FF789> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
        0x7fff82638000 -     0x7fff82638ff7  com.apple.Carbon 150 (152) <19B37B7B-1594-AD0A-7F14-FA2F85AD7241> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
        0x7fff82dce000 -     0x7fff82e3fff7  com.apple.AppleVAFramework 4.10.26 (4.10.26) <28C1B366-DF2B-111B-1863-0713B105D930> /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
        0x7fff82f20000 -     0x7fff83f5afff  com.apple.WebCore 6534 (6534.50) <8B0BB24A-C84C-A4F2-5544-C8071A35BBC5> /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
        0x7fff83f5b000 -     0x7fff84765fe7  libBLAS.dylib 219.0.0 (compatibility 1.0.0) <EEE5CE62-9155-6559-2AEA-05CED0F5B0F1> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
        0x7fff84774000 -     0x7fff84774ff7  com.apple.Cocoa 6.6 (???) <68B0BE46-6E24-C96F-B341-054CF9E8F3B6> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
        0x7fff847a5000 -     0x7fff847faff7  com.apple.framework.familycontrols 2.0.2 (2020) <F09541B6-5E28-1C01-C1AE-F6A2508670C7> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyCon trols
        0x7fff84b41000 -     0x7fff84bfefff  com.apple.CoreServices.OSServices 359.2 (359.2) <BBB8888E-18DE-5D09-3C3A-F4C029EC7886> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
        0x7fff84bff000 -     0x7fff84efdfff  com.apple.HIToolbox 1.6.5 (???) <AD1C18F6-51CB-7E39-35DD-F16B1EB978A8> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
        0x7fff84efe000 -     0x7fff84f01ff7  libCoreVMClient.dylib ??? (???) <E03D7C81-A3DA-D44A-A88A-DDBB98AF910B> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClien t.dylib
        0x7fff85010000 -     0x7fff85292fe7  com.apple.Foundation 6.6.7 (751.62) <6F2A5BBF-6990-D561-2928-AD61E94036D9> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
        0x7fff852cc000 -     0x7fff852d7fff  com.apple.corelocation 12.3 (12.3) <A6CFB410-2333-8BE3-658B-75A93C90A9CC> /System/Library/Frameworks/CoreLocation.framework/Versions/A/CoreLocation
        0x7fff852d8000 -     0x7fff852e7fff  libxar.1.dylib ??? (???) <CBAF862A-3C77-6446-56C2-9C4461631AAF> /usr/lib/libxar.1.dylib
        0x7fff852e8000 -     0x7fff852ecff7  libCGXType.A.dylib 545.0.0 (compatibility 64.0.0) <DB710299-B4D9-3714-66F7-5D2964DE585B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
        0x7fff85315000 -     0x7fff85326fff  SyndicationUI ??? (???) <117F0971-8B7E-DC2A-84C1-C8B5FA15E421> /System/Library/PrivateFrameworks/SyndicationUI.framework/Versions/A/Syndicatio nUI
        0x7fff85327000 -     0x7fff8533bfff  libGL.dylib ??? (???) <2ECE3B0F-39E1-3938-BF27-7205C6D0358B> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
        0x7fff8553b000 -     0x7fff8559bfe7  com.apple.framework.IOKit 2.0 (???) <4F071EF0-8260-01E9-C641-830E582FA416> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
        0x7fff8559c000 -     0x7fff8574dfe7  com.apple.WebKit2 6534 (6534.50) <1D20EA7A-C33B-BF9A-C58A-D40B8CA7F1AA> /System/Library/PrivateFrameworks/WebKit2.framework/Versions/A/WebKit2
        0x7fff8574e000 -     0x7fff85868fef  libGLProgrammability.dylib ??? (???) <8A4B86E3-0FA7-8684-2EF2-C5F8079428DB> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
        0x7fff85869000 -     0x7fff85d6fff7  com.apple.VideoToolbox 0.484.52 (484.52) <FA1B8197-8F5F-73CB-A9A1-49E0FB49CF51> /System/Library/PrivateFrameworks/VideoToolbox.framework/Versions/A/VideoToolbo x
        0x7fff85dd3000 -     0x7fff85e14fef  com.apple.QD 3.36 (???) <5DC41E81-32C9-65B2-5528-B33E934D5BB4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
        0x7fff85ed9000 -     0x7fff85efcfff  com.apple.opencl 12.3.6 (12.3.6) <42FA5783-EB80-1168-4015-B8C68F55842F> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
        0x7fff85efd000 -     0x7fff85f67fe7  libvMisc.dylib 268.0.1 (compatibility 1.0.0) <75A8D840-4ACE-6560-0889-2AFB6BE08E59> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
        0x7fff85f68000 -     0x7fff86018fff  edu.mit.Kerberos 6.5.11 (6.5.11) <085D80F5-C9DC-E252-C21B-03295E660C91> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
        0x7fff86019000 -     0x7fff86096fef  libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
        0x7fff86425000 -     0x7fff86439ff7  com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <63C87CF7-56B3-4038-8136-8C26E96AD42F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
        0x7fff8643a000 -     0x7fff86457ff7  libPng.dylib ??? (???) <6D8E515B-E0A2-2BA1-9CAC-8CB8A8B35879> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
        0x7fff86458000 -     0x7fff8656ffef  libxml2.2.dylib 10.3.0 (compatibility 10.0.0) <1B27AFDD-DF87-2009-170E-C129E1572E8B> /usr/lib/libxml2.2.dylib
        0x7fff86638000 -     0x7fff866f9fef  com.apple.ColorSync 4.6.6 (4.6.6) <BB2C5813-C61D-3CBA-A8F7-0E59E46EBEE8> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
        0x7fff86752000 -     0x7fff86785ff7  libTrueTypeScaler.dylib ??? (???) <69D4A213-45D2-196D-7FF8-B52A31DFD329> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib
        0x7fff86786000 -     0x7fff868fdfe7  com.apple.CoreFoundation 6.6.5 (550.43) <31A1C118-AD96-0A11-8BDF-BD55B9940EDC> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        0x7fff86922000 -     0x7fff869e3fff  libFontParser.dylib ??? (???) <A00BB0A7-E46C-1D07-1391-194745566C7E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontParser.dylib
        0x7fff869e4000 -     0x7fff86a60ff7  com.apple.ISSupport 1.9.7 (55) <BAE839AB-9DBD-FB23-F1F1-39445F04D8DA> /System/Library/PrivateFrameworks/ISSupport.framework/Versions/A/ISSupport
        0x7fff86a61000 -     0x7fff86dfefe7  com.apple.QuartzCore 1.6.3 (227.37) <16DFF6CD-EA58-CE62-A1D7-5F6CE3D066DD> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
        0x7fff86f4e000 -     0x7fff86f54fff  libCGXCoreImage.A.dylib 545.0.0 (compatibility 64.0.0) <D2F8C7E3-CBA1-2E66-1376-04AA839DABBB> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGXCoreImage.A.dylib
        0x7fff86f69000 -     0x7fff87003fe7  com.apple.ApplicationServices.ATS 275.16 (???) <4B70A2FC-1902-5F27-5C3B-5C78C283C6EA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
        0x7fff87004000 -     0x7fff871c5fef  libSystem.B.dylib 125.2.11 (compatibility 1.0.0) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib
        0x7fff87248000 -     0x7fff8724cff7  libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
        0x7fff8724d000 -     0x7fff8728aff7  libssl.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <F743389F-F25A-A77D-4FCA-D6B01AF2EE6D> /usr/lib/libssl.0.9.8.dylib
        0x7fff8728b000 -     0x7fff8729cff7  libz.1.dylib 1.2.3 (compatibility 1.0.0) <FB5EE53A-0534-0FFA-B2ED-486609433717> /usr/lib/libz.1.dylib
        0x7fff8729d000 -     0x7fff872a3ff7  IOSurface ??? (???) <04EDCEDE-E36F-15F8-DC67-E61E149D2C9A> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
        0x7fff872a4000 -     0x7fff873ccff7  com.apple.MediaToolbox 0.484.52 (484.52) <F03DAC32-79DB-EA5A-9B8D-CB288AF91A56> /System/Library/PrivateFrameworks/MediaToolbox.framework/Versions/A/MediaToolbo x
        0x7fff873cd000 -     0x7fff873ceff7  com.apple.audio.units.AudioUnit 1.6.7 (1.6.7) <53299948-2554-0F8F-7501-04B34E49F6CF> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
        0x7fff87436000 -     0x7fff8744dfff  com.apple.ImageCapture 6.1 (6.1) <79AB2131-2A6C-F351-38A9-ED58B25534FD> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
        0x7fff8744e000 -     0x7fff87491fef  libtidy.A.dylib ??? (???) <2F4273D3-418B-668C-F488-7E659D3A8C23> /usr/lib/libtidy.A.dylib
        0x7fff87492000 -     0x7fff87510ff7  com.apple.CoreText 151.10 (???) <54961997-55D8-DC0F-2634-674E452D5A8E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
        0x7fff87777000 -     0x7fff878b5fff  com.apple.CoreData 102.1 (251) <32233D4D-00B7-CE14-C881-6BF19FD05A03> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
        0x7fff878b6000 -     0x7fff878bdfff  com.apple.OpenDirectory 10.6 (10.6) <4200CFB0-DBA1-62B8-7C7C-91446D89551F> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
        0x7fff878be000 -     0x7fff878beff7  com.apple.Accelerate 1.6 (Accelerate 1.6) <2BB7D669-4B40-6A52-ADBD-DA4DB3BC0B1B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
        0x7fff878c9000 -     0x7fff87ad6ff7  com.apple.JavaScriptCore 6534 (6534.49) <1D418EF7-CDBE-3832-0157-D853073948D0> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
        0x7fff87ad7000 -     0x7fff87b2aff7  com.apple.HIServices 1.8.3 (???) <F6E0C7A7-C11D-0096-4DDA-2C77793AA6CD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
        0x7fff87b2b000 -     0x7fff88525ff7  com.apple.AppKit 6.6.8 (1038.36) <4CFBE04C-8FB3-B0EA-8DDB-7E7D10E9D251> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
        0x7fff88526000 -     0x7fff8856fff7  com.apple.securityinterface 4.0.1 (40418) <E2DC796D-84EC-48F5-34A9-DF614573BE74> /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
        0x7fff88570000 -     0x7fff88570ff7  com.apple.vecLib 3.6 (vecLib 3.6) <08D3D45D-908B-B86A-00BA-0F978D2702A7> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
        0x7fff88571000 -     0x7fff88596ff7  com.apple.CoreVideo 1.6.2 (45.6) <E138C8E7-3CB6-55A9-0A2C-B73FE63EA288> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
        0x7fff88597000 -     0x7fff885d1fff  libcups.2.dylib 2.8.0 (compatibility 2.0.0) <7982734A-B66B-44AA-DEEC-364D2C10009B> /usr/lib/libcups.2.dylib
        0x7fff885d2000 -     0x7fff885dffe7  libCSync.A.dylib 545.0.0 (compatibility 64.0.0) <1C35FA50-9C70-48DC-9E8D-2054F7A266B1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
        0x7fff885ec000 -     0x7fff88634ff7  libvDSP.dylib 268.0.1 (compatibility 1.0.0) <170DE04F-89AB-E295-0880-D69CAFBD7979> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
        0x7fff8863c000 -     0x7fff88970fef  com.apple.CoreServices.CarbonCore 861.39 (861.39) <1386A24D-DD15-5903-057E-4A224FAF580B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
        0x7fff88993000 -     0x7fff889d0ff7  libFontRegistry.dylib ??? (???) <4C3293E2-851B-55CE-3BE3-29C425DD5DFF> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontRegistry.dylib
        0x7fff889d1000 -     0x7fff88a18ff7  com.apple.coreui 2 (114) <D7645B59-0431-6283-7322-957D944DAB21> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
        0x7fff88a63000 -     0x7fff88a69ff7  com.apple.CommerceCore 1.0 (9.1) <3691E9BA-BCF4-98C7-EFEC-78DA6825004E> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/C ommerceCore.framework/Versions/A/CommerceCore
        0x7fff88a6a000 -     0x7fff88aa0ff7  com.apple.framework.Apple80211 6.2.5 (625.6) <B67C7A65-E4FB-4419-3F31-4482E17EF203> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
        0x7fff88aa1000 -     0x7fff88b26ff7  com.apple.print.framework.PrintCore 6.3 (312.7) <CDFE82DD-D811-A091-179F-6E76069B432D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
        0x7fff88b27000 -     0x7fff88db0ff7  com.apple.security 6.1.2 (55002) <4419AFFC-DAE7-873E-6A7D-5C9A5A4497A6> /System/Library/Frameworks/Security.framework/Versions/A/Security
        0x7fff88f76000 -     0x7fff88f78fff  libRadiance.dylib ??? (???) <A9DB4D5D-4072-971B-DEF6-DDE645F415EA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
        0x7fff89024000 -     0x7fff8904fff7  libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <8AB4CA9E-435A-33DA-7041-904BA7FA11D5> /usr/lib/libxslt.1.dylib
        0x7fff89050000 -     0x7fff89078fff  com.apple.DictionaryServices 1.1.2 (1.1.2) <E9269069-93FA-2B71-F9BA-FDDD23C4A65E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
        0x7fff89444000 -     0x7fff89449fff  libGIF.dylib ??? (???) <201B8077-B5CC-11AA-E1B0-1D057ABE416A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
        0x7fff89517000 -     0x7fff8964cfff  com.apple.audio.toolbox.AudioToolbox 1.6.7 (1.6.7) <E5D7DBDB-6DDF-E6F9-C71C-86F4520EE5A3> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
        0x7fff8964d000 -     0x7fff89663fef  libbsm.0.dylib ??? (???) <83676D2E-23CD-45CD-BE5C-35FCFFBBBDBB> /usr/lib/libbsm.0.dylib
        0x7fff89664000 -     0x7fff89783fe7  libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <14115D29-432B-CF02-6B24-A60CC533A09E> /usr/lib/libcrypto.0.9.8.dylib
        0x7fff8983c000 -     0x7fff8985dfff  libresolv.9.dylib 41.0.0 (compatibility 1.0.0) <6993F348-428F-C97E-7A84-7BD2EDC46A62> /usr/lib/libresolv.9.dylib
        0x7fff89899000 -     0x7fff898aeff7  com.apple.LangAnalysis 1.6.6 (1.6.6) <DC999B32-BF41-94C8-0583-27D9AB463E8B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
        0x7fff898b7000 -     0x7fff898b8ff7  com.apple.TrustEvaluationAgent 1.1 (1) <040B71B1-F8BD-1605-057E-E80DBDE1FE59> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/Tru stEvaluationAgent
        0x7fff898b9000 -     0x7fff89a77fff  libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <4274FC73-A257-3A56-4293-5968F3428854> /usr/lib/libicucore.A.dylib
        0x7fff89ac4000 -     0x7fff89b13ff7  com.apple.DirectoryService.PasswordServerFramework 6.1 (6.1) <01B370FB-D524-F660-3826-E85B7F0D85CD> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordS erver
        0x7fff89b64000 -     0x7fff89c38fe7  com.apple.CFNetwork 454.12.4 (454.12.4) <C83E2BA1-1818-B3E8-5334-860AD21D1C80> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
        0x7fff89c39000 -     0x7fff89c74fff  com.apple.AE 496.5 (496.5) <208DF391-4DE6-81ED-C697-14A2930D1BC6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
        0x7fff89cfd000 -     0x7fff89d08fff  com.apple.CrashReporterSupport 10.6.7 (258) <A2CBB18C-BD1C-8650-9091-7687E780E689> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/Cra shReporterSupport
        0x7fff89d09000 -     0x7fff89d4cff7  libRIP.A.dylib 545.0.0 (compatibility 64.0.0) <5FF3D7FD-84D8-C5FA-D640-90BB82EC651D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
        0x7fff89d4d000 -     0x7fff89d50ff7  com.apple.securityhi 4.0 (36638) <38935851-09E4-DDAB-DB1D-30ADC39F7ED0> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
        0x7fff89d60000 -     0x7fff8a45cff7  com.apple.CoreGraphics 1.545.0 (???) <58D597B1-EB3B-710E-0B8C-EC114D54E11B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
        0x7fff8a45d000 -     0x7fff8a460fff  com.apple.help 1.3.2 (41.1) <BD1B0A22-1CB8-263E-FF85-5BBFDE3660B9> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
        0x7fff8a461000 -     0x7fff8a461ff7  com.apple.ApplicationServices 38 (38) <10A0B9E9-4988-03D4-FC56-DDE231A02C63> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
        0x7fff8a462000 -     0x7fff8a4abfef  libGLU.dylib ??? (???) <1C050088-4AB2-2BC2-62E6-C969F925A945> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
        0x7fff8a4ac000 -     0x7fff8a4acff7  com.apple.CoreServices 44 (44) <DC7400FB-851E-7B8A-5BF6-6F50094302FB> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
        0x7fff8a4ad000 -     0x7fff8a566fff  libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <2C5ED312-E646-9ADE-73A9-6199A2A43150> /usr/lib/libsqlite3.dylib
        0x7fff8a5a1000 -     0x7fff8a5b0fff  com.apple.NetFS 3.2.2 (3.2.2) <7CCBD70E-BF31-A7A7-DB98-230687773145> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
        0x7fff8a5b1000 -     0x7fff8a5c0fef  com.apple.opengl 1.6.13 (1.6.13) <516098B3-4517-8A55-64BB-195CDAA5334D> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
        0x7fff8a5c1000 -     0x7fff8a602fff  com.apple.SystemConfiguration 1.10.8 (1.10.2) <78D48D27-A9C4-62CA-2803-D0BBED82855A> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
        0x7fffffe00000 -     0x7fffffe01fff  libSystem.B.dylib ??? (???) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib
    Model: iMac10,1, BootROM IM101.00CC.B00, 2 processors, Intel Core 2 Duo, 3.06 GHz, 4 GB, SMC 1.52f9
    Graphics: NVIDIA GeForce 9400, NVIDIA GeForce 9400, PCI, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 2.1.14.6
    Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Serial ATA Device: ST3500418ASQ, 465.76 GB
    Serial ATA Device: HL-DT-ST DVDRW  GA11N
    USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0606, 0x24300000 / 3
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8502, 0x24400000 / 2
    USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26500000 / 2
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x04500000 / 2
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8215, 0x06110000 / 4

    You need to get rid of that plugin.
    The locations of the various files is shown under 'binary images'.

  • How can I use a progress bar in objective c mac

    How can I use a progress bar in objective c mac? I have a code that downloads a file and I want to be able to let the progress bar increase by 1. A bit further on the code (to download the file) it needs to increase again. And so on...
    My code
    -(IBAction) downloadButtonPressed:(id)sender;{
        //get the path to the image that we're going to download
        NSURL *url = [NSURL URLWithString:@"https://www.dropbox.com/s/l6o07m48npxknt4/Cluedo.zip?dl=1"];
        //get the path to documents folder where we're going to save our image
        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
        NSString *DocumentsDirectory = [paths objectAtIndex:0];
        NSString *filePath = [DocumentsDirectory stringByAppendingPathComponent:@"Cluedo.zip"];
        //Download the file to memory
        NSData *data = [NSData dataWithContentsOfURL:url];
        NSError *error = nil;
        //Save it on the Documents directory
        [data writeToFile:filePath options:NSDataWritingAtomic error:&error];
        NSFileManager* fm = [NSFileManager defaultManager];
        NSString* zipPath = filePath;
        NSString* targetFolder = @"/Applications"; //this it the parent folder
        //where your zip's content
        //goes to (must exist)
        //create a new empty folder (unzipping will fail if any
        //of the payload files already exist at the target location)
        [fm createDirectoryAtPath:targetFolder withIntermediateDirectories:NO
                       attributes:nil error:NULL];
        //now create a unzip-task
        NSArray *arguments = [NSArray arrayWithObject:zipPath];
        NSTask *unzipTask = [[NSTask alloc] init];
        [unzipTask setLaunchPath:@"/usr/bin/unzip"];
        [unzipTask setCurrentDirectoryPath:targetFolder];
        [unzipTask setArguments:arguments];
        [unzipTask launch];
        //[unzipTask waitUntilExit]; //remove this to start the task concurrently

    Your code really isn't suitable for a progress bar, not a real one anyway. Your code will spend about 99.9% of its time in the method "dataWithContentsOfURL:url". That is not a method you want to use in the real world. It is only for demos or proof of concept exercises. All network operations should be asynchronous. That gives you the ability to gracefully recover when there is a failure and also to do fancy things like display a progress bar and tell the user when the download is complete.
    Once you get the asynchronous download logic working, then you can worry about the progress bar. The first thing you will need is the size of the file. Without that, all you can ever do is an indeterminate progress bar or spinner. If you have the size of the file, then you can keep track of how much of the file you have downloaded and update your progress bar with the percentage complete. Make sure to throttle it to no more than incrementing by 1% at a time. Otherwise, a large file or a file transferred in many small chunks, would waste too much time updating the progress bar for no change.

  • Error while uploading images to SAP Mobile Documents from iPad application using ObjectiveCMIS.

    Hi,
    I am getting the error while uploading images to SAP Mobile Documents from custom iOS(iPad )application using ObjectiveCMIS library.
    My Custom method is as follows:
    - (void)createSalesOrderRouteMapImageInFolder:(NSString*)salesOrderRouteMapFolderId routeMapImageTitle:(NSString *)imageTitle routeMapContent:(NSData *)imageData
        NSInputStream *inputStream = [NSInputStream inputStreamWithData:imageData];
        NSMutableDictionary *properties = [NSMutableDictionary dictionary];
        [properties setObject:[NSString stringByAppendingFileExtension:imageTitle] forKey:@"cmis:name"];
        [properties setObject:@"cmis:document" forKey:@"cmis:objectTypeId"];
        [self.session createDocumentFromInputStream:inputStream
                                           mimeType:@"image/png"
                                         properties:properties
                                           inFolder:salesOrderRouteMapFolderId
                                      bytesExpected:[imageData length]
                                    completionBlock:^(NSString *objectId, NSError *error) {
                                        NSLog(@"Object id is %@",objectId);
                                        if(error == nil) {
                                            [inputStream close];
                                            NSLog(@"Uploading Sales order route map successfully.");
                                            [[NSNotificationCenter defaultCenter] postNotificationName:SaveOrderSuccessNotification object:nil];
                                        } else {
                                            [inputStream close];
                                            NSLog(@"Uploading sales order route map failed.");
                                            [[NSNotificationCenter defaultCenter] postNotificationName:SaveOrderFailedNotification object:error];
                                    } progressBlock:^(unsigned long long bytesUploaded, unsigned long long bytesTotal) {
                                        NSLog(@"uploading... (%llu/%llu)", bytesUploaded, bytesTotal);
    OBjectiveCMIS Method in which i am getting error during upload:
    - (void)sendAtomEntryXmlToLink:(NSString *)link
                 httpRequestMethod:(CMISHttpRequestMethod)httpRequestMethod
                        properties:(CMISProperties *)properties
                contentInputStream:(NSInputStream *)contentInputStream
                   contentMimeType:(NSString *)contentMimeType
                     bytesExpected:(unsigned long long)bytesExpected
                       cmisRequest:(CMISRequest*)request
                   completionBlock:(void (^)(CMISObjectData *objectData, NSError *error))completionBlock
                     progressBlock:(void (^)(unsigned long long bytesUploaded, unsigned long long bytesTotal))progressBlock
        // Validate param
        if (link == nil) {
            CMISLogError(@"Must provide link to send atom entry");
            if (completionBlock) {
                completionBlock(nil, [CMISErrors createCMISErrorWithCode:kCMISErrorCodeInvalidArgument detailedDescription:nil]);
            return;
        // generate start and end XML
        CMISAtomEntryWriter *writer = [[CMISAtomEntryWriter alloc] init];
        writer.cmisProperties = properties;
        writer.mimeType = contentMimeType;
        NSString *xmlStart = [writer xmlStartElement];
        NSString *xmlContentStart = [writer xmlContentStartElement];
        NSString *start = [NSString stringWithFormat:@"%@%@", xmlStart, xmlContentStart];
        NSData *startData = [NSMutableData dataWithData:[start dataUsingEncoding:NSUTF8StringEncoding]];
        NSString *xmlContentEnd = [writer xmlContentEndElement];
        NSString *xmlProperties = [writer xmlPropertiesElements];
        NSString *end = [NSString stringWithFormat:@"%@%@", xmlContentEnd, xmlProperties];
        NSData *endData = [end dataUsingEncoding:NSUTF8StringEncoding];
        // The underlying CMISHttpUploadRequest object generates the atom entry. The base64 encoded content is generated on
        // the fly to support very large files.
        [self.bindingSession.networkProvider invoke:[NSURL URLWithString:link]
                                         httpMethod:httpRequestMethod
                                            session:self.bindingSession
                                        inputStream:contentInputStream
                                            headers:[NSDictionary dictionaryWithObject:kCMISMediaTypeEntry forKey:@"Content-type"]
                                      bytesExpected:bytesExpected
                                        cmisRequest:request
                                          startData:startData
                                            endData:endData
                                  useBase64Encoding:YES
                                    completionBlock:^(CMISHttpResponse *response, NSError *error) {
                                        if (error) {
                                            CMISLogError(@"HTTP error when sending atom entry: %@", error.userInfo.description);
                                            if (completionBlock) {
                                                completionBlock(nil, error);
                                        } else if (response.statusCode == 200 || response.statusCode == 201 || response.statusCode == 204) {
                                            if (completionBlock) {
                                                NSError *parseError = nil;
                                                CMISAtomEntryParser *atomEntryParser = [[CMISAtomEntryParser alloc] initWithData:response.data];
                                                [atomEntryParser parseAndReturnError:&parseError];
                                                if (parseError == nil) {
                                                    completionBlock(atomEntryParser.objectData, nil);
                                                } else {
                                                    CMISLogError(@"Error while parsing response: %@", [parseError description]);
                                                    completionBlock(nil, [CMISErrors cmisError:parseError cmisErrorCode:kCMISErrorCodeRuntime]);
                                        } else {
                                            CMISLogError(@"Invalid http response status code when sending atom entry: %d", (int)response.statusCode);
                                            CMISLogError(@"Error content: %@", [[NSString alloc] initWithData:response.data encoding:NSUTF8StringEncoding]);
                                            if (completionBlock) {
                                                completionBlock(nil, [CMISErrors createCMISErrorWithCode:kCMISErrorCodeRuntime
                                                                                     detailedDescription:[NSString stringWithFormat:@"Failed to send atom entry: http status code %li", (long)response.statusCode]]);
                                      progressBlock:progressBlock];
    Attaching the logs:
    ERROR [CMISAtomPubBaseService sendAtomEntryXmlToLink:httpRequestMethod:properties:contentInputStream:contentMimeType:bytesExpected:cmisRequest:completionBlock:progressBlock:] HTTP error when sending atom entry: Error Domain=org.apache.chemistry.objectivecmis Code=260 "Runtime Error" UserInfo=0x156acfa0 {NSLocalizedDescription=Runtime Error, NSLocalizedFailureReason=ASJ.ejb.005044 (Failed in component: sap.com/com.sap.mcm.server.nw) Exception raised from invocation of public void com.sap.mcm.server.service.AbstractChangeLogService.updateChangeLog(java.lang.String,boolean) throws com.sap.mcm.server.api.exception.MCMException method on bean instance com.sap.mcm.server.nw.service.NwChangeLogService@4e7989f3 for bean sap.com/com.sap.mcm.server.nw*annotation|com.sap.mcm.server.nw.ejb.jar*annotation|NwChangeLogService in application sap.com/com.sap.mcm.server.nw.; nested exception is: javax.ejb.EJBTransactionRolledbackException: ASJ.ejb.005044 (Failed in component: sap.com/com.sap.mcm.server.nw) Exception raised from invocation of public com.sap.mcm.server.model.ChangeLog com.sap.mcm.server.dao.impl.ChangeLogDaoImpl.findByUserId(java.lang.String) method on bean instance com.sap.mcm.server.dao.impl.ChangeLogDaoImpl@2852b733 for bean sap.com/com.sap.mcm.server.nw*annotation|com.sap.mcm.server.nw.ejb.jar*annotation|ChangeLogDaoImpl in application sap.com/com.sap.mcm.server.nw.; nested exception is: javax.persistence.NonUniqueResultException: More than 1 objects of type ChangeLog found with userId=25f8928e-8ba0-4edd-b08e-43bf6fb78f1a; nested exception is: javax.ejb.EJBException: ASJ.ejb.005044 (Failed in component: sap.com/com.sap.mcm.server.nw) Exception raised from invocation of public com.sap.mcm.server.model.ChangeLog com.sap.mcm.server.dao.impl.ChangeLogDaoImpl.findByUserId(java.lang.String) method on bean instance com.sap.mcm.server.dao.impl.ChangeLogDaoImpl@2852b733 for bean sap.com/com.sap.mcm.server.nw*annotation|com.sap.mcm.server.nw.ejb.jar*annotation|ChangeLogDaoImpl in application sap.com/com.sap.mcm.server.nw.; nested exception is: javax.persistence.NonUniqueResultException: More than 1 objects of type ChangeLog found with userId=25f8928e-8ba0-4edd-b08e-43bf6fb78f1a}
    2015-03-12 04:08:31.634 Saudi Ceramics[4867:351095] Uploading sales order route map failed.

    Hi Sukalyan,
    Have you checked the below links?
    These will give you step by step implementation procedure.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/WDJava/KmuploadusingWebdynproapplication
    Regards,
    Sandip

  • Error while getting  image from database in SUP using ios?

    Hi All,
      Im developing native iOS application using sup 2.1.3 . Im getting error While retrieving  image from SUP database. Here i'm trying to get image from database and show in imageView.can any one help me how to fix this issue?
    In database image datatype is  'LONG Binary' .
    My table Schema:
    CREATE TABLE dba.ImagesTable (
    RowID INT NOT NULL,
    ImageName VARCHAR(20) NOT NULL,
    PhotoData LONG BINARY NOT NULL,
    IN SYSTEM
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA137 PRIMARY KEY CLUSTERED (RowID)
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA138 UNIQUE NONCLUSTERED (RowID)
    in Xcode:
                [SUP107SUP107DB synchronize];
                SUP107ImagesTable *imgTable =[[SUP107ImagesTable alloc]init];
                SUP107ImagesTableList *list =[SUP107ImagesTable findAll];
                SUP107ImagesTable * oneRecord =[list objectAtIndex:0];
                NSLog(@"rowId:%d---imageName:%@---photoData:%@---photoLenght:%d",oneRecord.rowID,oneRecord.imageName,oneRecord.photoData,oneRecord.photoDataLength);
                NSData *tempData =[[NSData alloc]init];
                SUPBigBinary *responseBinaryData = (SUPBigBinary *)oneRecord.photoData.value;
                @try {
                    [responseBinaryData openForWrite:[oneRecord.photoData length]];
                    [responseBinaryData write:tempData];
                @catch (NSException *exception) {
                    NSLog(@"exception: %@",[exception description]);
                UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(50,50,100,100)];
                [self.window addSubview:imgView];
                UIImage * tempImage =[UIImage imageWithData:tempData];
                imgView.image = tempImage;
                [responseBinaryData close];
    Error Log:
    2014-04-02 18:42:15.150 SUP102[2873:70b] rowId:1---imageName:Apple---photoData:SUPBigBinary: column=c pending=1 allow_pending_state=1 table=sup107_1_0_imagestable mbo=0x0 key=(null) ---photoLenght:90656
    Printing description of responseBinaryData:
    <OS_dispatch_data: data[0xc891b40] = { leaf, size = 90656, buf = 0x1213a000 }>
    2014-04-02 18:42:33.304 SUP102[2873:70b] -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] exception: -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.306 SUP102[2873:70b] [ERROR] [AppDelegate.m:497] NSInvalidArgumentException: -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40

    This thread talks about uploading image to SAP from a IOS device,Sending Image to SAP via iOS Native app (SUP 2.1.3)
    Midhun VP

  • How to open DOC/XLS files using UIWebView on iPhone 3.0?

    Hi,
    I am using the following code to display doc/xlst files on UIWebView. It's surprised that I can get the content of the file but cannot show in WebView.
    NSData *myData = [NSData dataWithContentsOfFile: fileDesPath];
    NSString *ext = [m_openFiles.fileExtension lowercaseString];
    NSString *mimeType;
    if ([ext isEqualToString:@"doc"]) {
    mimeType = @"application/msword";
    }else if([ext isEqualToString:@"xls"]){
    mimeType = @"application/vnd.ms-excel";
    }else if([ext isEqualToString:@"wma"]){
    mimeType = @"audio/x-ms-wma";
    }else if([ext isEqualToString:@"jpg"] || [ext isEqualToString:@"jpeg"]){
    mimeType = @"image/jpeg";
    }else if([ext isEqualToString:@"tif"]||[ext isEqualToString:@"tiff"]){
    mimeType = @"image/tiff";
    }else if([ext isEqualToString:@"htm"]||[ext isEqualToString:@"html"]){
    mimeType = @"text/html";
    }else if([ext isEqualToString:@"mov"]){
    mimeType = @"video/quicktime";
    }else if([ext isEqualToString:@"mp4"]){
    mimeType = @"video/mp4";
    }else if([ext isEqualToString:@"txt"]){
    mimeType = @"text/plain";
    }else{
    mimeType = [NSString stringWithFormat:@"application/%@", ext]; //pdf
    NSLog(mimeType);
    //Here, I can get the myData. The value is the content of the doc file.
    if (myData) {
    [self.myWebView loadData:myData MIMEType:mimeType textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:fileDesPath]];
    After loadData, it cannot show anything in webview!
    Can someone help me in this matter?
    Thanks,
    Message was edited by: Small Apple

    Hi Maurício -
    For your future reference and for the information of everyone who comes across this post in the future:
    We host all of our DataPlugins on our website at ni.com/dataplugins.  There are hundreds of file formats supported through the available DataPlugins, and there is also a link on that site where you can request a DataPlugin be written for file formats that aren't currently supported (such as custom *.CSV files).
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Using java type strings in objective C

    HI all,
    I am into a greater mess of creating a java equivalent string using NSString class. I need to a convert some strings into bytes and then I have to write in streams. The problem is in java the length of character is 2 bytes. But in objective C the length of char is 1 byte. In java they used to convert the the entire sting into char array and then the char array into byte array and then they write in the streams. I need to implement same as java. Using NSString , there are methods available to convert into NSData . from the object of NSData , the byte Array can be obtained. but the length of the byte array compared to the length of byte array in java seems to be half. I have used "NSUTF8StringEncoding" to encode the string into NSData. Is there anyway to obtain the above said scenario using objective C.
    Regards,
    Mohammed Sadiq.

    HI xnav,
    thanks a lot .. Following is my code :
    NSData *data = [@"12C58CE4DB9752C" dataUsingEncoding: NSUnicodeStringEncoding];
    int len = [data length];
    here the value of len is 32 bytes.
    anyway I didn't try out using CString.
    I also like to clarfiy the usage of unichar. Following is the code that i used to convert, to and from NSData using unichar :
    // converting to NSData
    +(NSData *)NSDataFromString:(NSString *)value_
    int len = [value_ length] * sizeof(unichar);
    unichar *buffer = (unichar *)malloc(len);
    [value_ getCharacters:buffer];
    NSData *data = [NSData dataWithBytes:buffer length:len];
    free(buffer);
    return data;
    // converting into NSString :
    +(NSString *)NSDataToString:(NSData *)data_
    unichar *characters = (unichar *)[data_ bytes];
    NSString *value = [NSString stringWithCharacters:characters length:[data_ length]];
    return value;
    I tried converting a sample string with above methods its working. shall i follow the above. does it affects any values that i used to fetch from the server.
    awaiting for your response
    Regards,
    Mohammed Sadiq.

  • Using visibleCells to reference a cells image

    I am trying to set the image a cell
    - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
    NSArray *visibleCells = [tableView visibleCells];
    int i;
    for (i=0; i<visibleCells count; i++) {
    UITableViewCell *currentCell = [visibleCells objectAtIndex:i];
    if (!currentCell.image) {
    NSLog(@"loader setting image in cell: %d to URL: %@",currentCell.tag, [imgarr objectAtIndex:currentcell.tag]);
    NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:[imgarr objectAtIndex:currentCell.tag]]];
    if (data) {
    cell.image = [[UIImage alloc] initWithData:data];
    [currentCell setNeedsLayout];
    how do the cells in visibleCells correlate to the cells in the tableView? I have an imgarr Array that holds the url to the image indexed to the same order as the cells in the table. cell.tag does not seem to work. I am setting the cell tag to "indexPath.row" during cell creation/setup, then trying to pass it as the objectAtIndex in the array. I simplified the code for the post i am actually queuing an operation to load the images in scrollViewDidEndDecelerating. I am getting the wrong images loaded to the cell. I hope my code is explanatory enough i had to cut out a lot of commented out tests.
    Message was edited by: xnakx

    if (cell == nil)
    // no cell to reuse. so let's create a new one
    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease];
    CGRect cellRectangle = CGRectMake(resTEXT_OFFSET, (resROW_HEIGHT - resLABEL_HEIGHT) / 2.0, resTEXT_WIDTH, resLABEL_HEIGHT);
    label = [[UILabel alloc] initWithFrame:cellRectangle];
    label.numberOfLines = 3;
    label.tag =resTEXT_TAG;
    label.font = [UIFont systemFontOfSize:12];
    label.textColor = [UIColor colorWithRed:0.55 green:0.45 blue:0.36 alpha:1.0];
    [cell.contentView addSubview:label];
    [label release];
    cell.selectionStyle = UITableViewCellSelectionStyleGray;
    cell.textColor = [UIColor colorWithWhite:0.5 alpha:0.5];
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    cell.tag = indexPath.row;
    } else {
    //reuse the cell
    cell.tag = indexPath.row;
    label = (UILabel*)[cell.contentView viewWithTag:resTEXT_TAG];
    then this gets called when the table is scrolled (it is actually queued as a NSOperation)
    - (void)loadImagesOfVisibleCellsInTableView:(UITableView *)tableView {
    [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
    NSArray *visibleCells = [tableView visibleCells];
    int i;
    for (i=0; i<[visibleCells count]; i++) {
    NSLog(@"visible Cell: %d",[visibleCells objectAtIndex:i]);
    UITableViewCell *currentCell = [visibleCells objectAtIndex:i];
    if (!currentCell.image) {
    NSLog(@"loader setting image for cell: %d using url: %@",currentCell.tag, [imgarr objectAtIndex:currentCell.tag]);
    NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:[imgarr objectAtIndex:currentCell.tag]]];
    if (data) {
    currentCell.image = [[UIImage alloc] initWithData:data];
    [currentCell setNeedsLayout];
    [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
    I can verify that the imgarr Array is indexed properly. Images get loaded but usually the wrong ones. It seems to be the same 9 or so images get loaded for the cells, All cells. not just the ones currently in visible.
    ie. the table loads with no images at all (i have not set them for the initial cells for testing).
    after the first scroll has stopped the loadImagesOfVisibleCellsInTableView function downloads about nine but when i scroll again i see images for all cells, the loadImagesOfVisibleCellsInTableView was called again but i am checking if the cell.image was already set before downloading and setting them so it does nothing.

  • Formula variable using date char - unable to use conditions

    Hello Experts,
    I am sure I am making a silly mistake here - but after spending lot of time I am unable to rectify this - please help if you can:
    I basically want the report to show only latest employee actions for a selected period (usually month).
    1. I am using formula variable that is based on 0CALDAY and defined as number.
    2. A calculated keyfigure uses this formula variable. Both calculated keyfigure and CALDAY char are included in the report / navigation.
    3. There is a condition defined using calculated keyfigure. No matter what logic I use, I just cannot use calculated keyfigure to filter records on the report. My original idea was to use Top N - 1 with char combination as 'Employee' to get me the latest employee records for each employee.
    Can anyone help spot where I am going wrong?
    Thanks.

    I haven't looked at that, but as a first guess idea- why not use the picker to get a date, then save it as a number of seconds from a given date?
    See:
    dateWithTimeIntervalSince1970:
    Creates and returns an NSDate object set to the given number of seconds from the first instant of 1 January 1970, GMT.
    + (id)dateWithTimeIntervalSince1970:(NSTimeInterval)seconds
    Or you could store it as a string, but I think the number would be easier.

  • Error using keyed archiving on iPhone

    Hi
    I am trying to archive an object using keyed archiving. I have managed to successfully create the archive, but attempts to load it results in the following error:
    'NSInvalidArgumentException', reason: '* -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0xffffffce, 0xfffffffa, 0xffffffed, 0xfffffffe, 0x7, 0x0, 0x0, 0x0)'
    The code:
    path = [[NSBundle mainBundle] bundlePath];
    finalPath = [path stringByAppendingPathComponent:@"DataStore"];
    - (void)saveArchive {
    NSMutableData *data;
    NSKeyedArchiver *archiver;
    BOOL result;
    data = [NSMutableData data];
    archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData:data];
    [archiver encodeObject:myDataStore forKey:@"DataStore"];
    [archiver finishEncoding];
    result = [data writeToFile:finalPath atomically:YES];
    [archiver release];
    - (void)loadArchive {
    NSData *data;
    NSKeyedUnarchiver *unarchiver;
    data = [NSData dataWithContentsOfFile:finalPath];
    unarchiver = [[NSKeyedUnarchiver alloc] initForReadingWithData:data];
    myDataStore = [unarchiver decodeObjectForKey:@"DataStore"];
    [unarchiver finishDecoding];
    [unarchiver release];
    Any help would be appreciated please

    Solved. Can only write to documents or temp directory on iPhone

  • Using a local XML file for parsing - iPhone

    Good afternoon everyone. I am trying to create an application for the iPhone that will use an XML file for it's data source. I have been attempting to convert the SeismicXML application from the dev center to use a locally stored file, but to no avail. I have it building and running fine, but no data is appearing. Is there anyone that can give me an example of parsing with a locally stored file? Thanks!

    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"myFile" ofType:@"xml"];
    NSData *myData = [NSData dataWithContentsOfFile:filePath];
    if ( myData ) {
    NSXMLParser *parser = [[NSXMLParser alloc] initWithData:myData];
    [parser setDelegate:myObject];
    [parser setShouldProcessNamespaces:NO];
    [parser setShouldReportNamespacePrefixes:NO];
    [parser setShouldResolveExternalEntities:NO];
    [parser parse];
    NSError *parseError = [parser parserError];
    if ( parseError && error) {
    *error = parseError;
    // Do post load activity

  • Getting xml webservices using soap on xcode

    there is some error in the code , i dont know how to correct it !! *frustated*
    #import "XYZViewController.h"
    @interface XYZViewController ()
    @end
    @implementation XYZViewController
    @synthesize UserName,Password;
    #define startActivityIndicator  [[UIApplication sharedApplication]setNetworkActivityIndicatorVisible:YES]
    #define stopActivityIndicator  [[UIApplication sharedApplication]setNetworkActivityIndicatorVisible:NO];
    // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
        if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
            // Custom initialization
      nodeContent = [[NSMutableString alloc]init];
        return self;
    -(IBAction)invokeService
    if([[UserName text] isEqualToString:@""] || [[Password text] isEqualToString:@""] ) {
            UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"WebService" message:@"Supply Data in UserName or Password field" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok",nil];
            [alert show];
        else {
      NSString *soapFormat = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
      "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
      "<soap:Body>\n"
                                    "<UserAuthentication xmlns=\"http://tempuri.org/\">\n"
                                    "<UserName>%@</UserName>"
                                    "<Password>%@</Password>"
                                    "</UserAuthentication>"
                                    "</soap:Body>"
                                    "</soap:Envelope>", UserName, Password];
      NSLog(@"The request format is %@",soapFormat);
      NSURL *locationOfWebService = [NSURL URLWithString:@"http://10.146.89.22/userauth/Service.asmx"];
      NSLog(@"web url = %@",locationOfWebService);
      NSMutableURLRequest *theRequest = [[NSMutableURLRequest alloc]initWithURL:locationOfWebService];
      NSString *msgLength = [NSString stringWithFormat:@"%d",[soapFormat length]];
      [theRequest addValue:@"text/xml" forHTTPHeaderField:@"Content-Type"];
      [theRequest addValue:@"http://tempuri.org/UserAuthentication" forHTTPHeaderField:@"SOAPAction"];
      [theRequest addValue:msgLength forHTTPHeaderField:@"Content-Length"];
      [theRequest setHTTPMethod:@"POST"];
            [theRequest setHTTPBody: [soapFormat dataUsingEncoding:NSUTF8StringEncoding]];
      //the below encoding is used to send data over the net
      [theRequest setHTTPBody:[soapFormat dataUsingEncoding:NSUTF8StringEncoding]];
      NSURLConnection *connect = [[NSURLConnection alloc]initWithRequest:theRequest delegate:self];
      if (connect) {
      webData = [[NSMutableData alloc]init];
                startActivityIndicator;
      else {
      NSLog(@"No Connection established");
    //NSURLConnection delegate method
    -(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
      [webData setLength: 0];
    -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
      [webData appendData:data];
    -(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
    NSLog(@"ERROR with theConenction");
    -(void)connectionDidFinishLoading:(NSURLConnection *)connection
    NSLog(@"DONE. Received Bytes: %d", [webData length]);
    NSString *theXML = [[NSString alloc] initWithBytes: [webData mutableBytes] length:[webData length] encoding:NSUTF8StringEncoding];
      NSLog(@"%@",theXML);
    xmlParser = [[NSXMLParser alloc]initWithData:webData];
      [xmlParser setDelegate: self];
    //[xmlParser setShouldResolveExternalEntities: YES];
      [xmlParser parse];
    //[webData release];
    //[resultTable reloadData];
        stopActivityIndicator;
    //xml delegates
    - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict
    - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
      [nodeContent appendString:[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];
    - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
    if ([elementName isEqualToString:@"UserAuthenticationResult"]) {
      UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Message" message:@"you have entered!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok",nil];
                [alert show];
        }/*else {
            UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Message" message:@"you have not entered!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok",nil];
      [alert show];
    - (void)viewDidUnload {
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    -(IBAction)goAwayKeyboard:(id)sender{
        [sender resignFirstResponder];
    -(IBAction)tapBackground:(id)sender{
        [UserName resignFirstResponder];
        [Password resignFirstResponder];
    @end

    sir , i didnt wanna offend you with this stupid question of mine ,moreover i didnt know if noobs ask some question pros really get angry, but i am really new to this thing, *sorry*.
    theres some problem with userauthenticationresult , i am not able to connect , how to return its value ! 

Maybe you are looking for

  • Need to update PDF template based on XML data source - POAWDSF33 in PO

    I need to update a seeded PDF template - POAWDSF33 which is pdf type in Purchasing PO application to add some columns & reformat template according to client needs. This template picks data from two xml based Data definition [Award Data template] : P

  • GR after production order confirmation

    Hi pp guru... kindly suggest me how i will check GR after conformation.....GR should be after confirmation. kindly suggest me how i will do regards aqueel

  • Webcenter 10.3 - classic asp portlets

    Hi, I have few portlets which were developed in classic asp with plumtree version 5.0.3. Can anybody tell me what i have to do to run my asp portlets in webcenter 10.3. Is there any equivalent "Plumtree ASP Gadget Development Kit (GDK) 3.5" for webce

  • Comparison of URLs of files & documents on computer, with URLs in browsing history?

    Is there an app or other way of comparing the urls of pdfs on my computer that have been saved & printed with urls in the browsing history (to find out if the browsing history has duplicates)? I'm looking for a means that doesn't involve the download

  • Premiere Elements 9 Shakey Video After Render!?

    Hi I am using Premiere Elements 9 to create my videos. For some reason when I render my videos out the material is shaky? I've been rendering my videos to play on windows media and the format is HD720p 30 The camera I am using is a Panasonic HDC-SD20