¡@

Home 

2014/10/15 ¤U¤È 10:12:48

iphone Programming Glossary: po

How to dump data stored in objective-c object (NSArray or NSDictionary)

http://stackoverflow.com/questions/289241/how-to-dump-data-stored-in-objective-c-object-nsarray-or-nsdictionary

to dump data stored in objective c object NSArray or NSDictionary Forgive me for a potentially silly question here but in other programming languages scripting ones like PHP or Perl it is often easy to dump.. will get logged to console in the first case the result of myObj description a method defined in NSObject for the purpose of printing a description not a dump of an object. If you invoke po myObj in gdb you get myObj debugDescription often.. a method defined in NSObject for the purpose of printing a description not a dump of an object. If you invoke po myObj in gdb you get myObj debugDescription often the same as description but not always . Classes like NSArray and NSDictionary..

NSArray writeToFile fails

http://stackoverflow.com/questions/3010363/nsarray-writetofile-fails

arrr writeToFile fname atomically YES NSLog @ Could not write file regions.cid @.plist keys Here some GDB Output gdb po fname Users chris Library Application Support iPhone Simulator 4.0 Applications 44A9FF9E 5715 4BF0 9BE2 525883281420 Documents.. @ Could not write file regions.cid @.plist keys Here some GDB Output gdb po fname Users chris Library Application Support iPhone Simulator 4.0 Applications 44A9FF9E 5715 4BF0 9BE2 525883281420 Documents regions.cid0.plist gdb po arrr __NSArrayI.. Support iPhone Simulator 4.0 Applications 44A9FF9E 5715 4BF0 9BE2 525883281420 Documents regions.cid0.plist gdb po arrr __NSArrayI 0x8022b30 countryID null region U00e2vora regionID 16 countryID null region Vicenza regionID 14 countryID..

Xcode/GDB: How to get information about an exception that was just thrown?

http://stackoverflow.com/questions/3327828/xcode-gdb-how-to-get-information-about-an-exception-that-was-just-thrown

GDB How to get information about an exception that was just thrown OK so imagine that my breakpoint in objc_exception_throw has just triggered. I'm sitting at the debugger prompt and I want to get some more information.. on the calling conventions of the architecture you're running on. If you're debugging on an actual iOS device the pointer to the object is in register r0 . To print it or send messages to it use the following simple syntax gdb po r0 gdb.. the pointer to the object is in register r0 . To print it or send messages to it use the following simple syntax gdb po r0 gdb po r0 name gdb po r0 reason On the iPhone Simulator all function arguments are passed on the stack so the syntax..

NSNotificationCenter trapping and tracing all NSNotifications

http://stackoverflow.com/questions/3725234/nsnotificationcenter-trapping-and-tracing-all-nsnotifications

NSLog @ received notification @ notification name I do actually get a number of notifications that way. But at some point the application does crash. The stack trace shows it is crashing with EXC_BAD_ACCESS in realizeClass which from my experience.. object however still is alive its deallocator has not been called yet . Next thing I tried was setting a breakpoint towards NSNotificationCenter postNotification and then run po NSNotification ebp 16 inside the gdb console whenever my.. its deallocator has not been called yet . Next thing I tried was setting a breakpoint towards NSNotificationCenter postNotification and then run po NSNotification ebp 16 inside the gdb console whenever my breakpoint is trapped. That did reveal..

xcode 4 debugging shows 'Summary Unavailable' for most objects

http://stackoverflow.com/questions/5301582/xcode-4-debugging-shows-summary-unavailable-for-most-objects

share improve this question You're not going wrong Xcode 4 is. This problem is pretty common unfortunately. Report it at http bugreport.apple.com and hope for the best. In the meantime you can inspect variables using the console which.. this question You're not going wrong Xcode 4 is. This problem is pretty common unfortunately. Report it at http bugreport.apple.com and hope for the best. In the meantime you can inspect variables using the console which appears at the bottom..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio

from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto At a high level I created an app that lets a user point his or her iPhone camera around and see video frames that have been processed with visual effects. Additionally the user.. ios image processing opengl es opengl es 2.0 share improve this question This was a doozy. As Lio Ben Kereth pointed out the padding is 48 as you can see from the debugger gdb po pixelBuffer CVPixelBuffer 0x2934d0 width 852 height 640.. this question This was a doozy. As Lio Ben Kereth pointed out the padding is 48 as you can see from the debugger gdb po pixelBuffer CVPixelBuffer 0x2934d0 width 852 height 640 bytesPerRow 3456 pixelFormat BGRA # 3456 852 4 48 OpenGL can compensate..

Crash when using gesture recognizers in StoryBoard

http://stackoverflow.com/questions/9035826/crash-when-using-gesture-recognizers-in-storyboard

out how to get more information On a different tab this works fine. Both tabs were generated automatically. it's possible I messed something up in the view but I don't have a clue to figuring out what I did . If I make gestures programmatically.. nice to have it work in the storyboard and I'm afraid that whatever is wrong will cause a crash some other way at some point. MORE INFO In the simulator I get __NSCFString setView unrecognized selector sent to instance 0x6d2db70 Again need debugging.. with zombies enabled. A zombie can easily cause an unrecognized selector error. If it's not a zombie put a breakpoint on NSObject doesNotRecognizeSelector . When the breakpoint is hit you may be able to figure out the problem just from..

NSdate Assuming wrong time zone

http://stackoverflow.com/questions/9442126/nsdate-assuming-wrong-time-zone

share improve this question When you see an NSDate description printed in the console it is always the corresponding time in GMT. If you use the same date formatter to convert the date back to a string it should be in the specified.. the date back to a string it should be in the specified time zone. An NSDate description is what you see if you type po date or po date description or you use NSLog to send either one of these forms to the console. share improve this answer..