Top "Nslog" questions

Logs an error message to the Apple System Log facility.

How to print out the method name and line number and conditionally disable NSLog?

I'm doing a presentation on debugging in Xcode and would like to get more information on using NSLog efficiently. In …

objective-c cocoa cocoa-touch xcode nslog
Using NSLog for debugging

I have the following code snippet in my Xcode: NSString *digit [[sender titlelabel] text]; NSLog([digit]); I tried to build …

objective-c xcode debugging nslog
Warning: "format not a string literal and no format arguments"

Since upgrading to the latest Xcode 3.2.1 and Snow Leopard, I've been getting the warning "format not a string literal and …

objective-c warnings string-formatting nslog
NSLog/printf specifier for NSInteger?

A NSInteger is 32 bits on 32-bit platforms, and 64 bits on 64-bit platforms. Is there a NSLog specifier that always matches …

objective-c cocoa 32bit-64bit nslog nsinteger
iOS AutoLayout - get frame size width

I am developing using iOS 6 auto layout I would like to log a message displaying the frame width of the …

ios nslog autolayout
How to print out string constant with NSLog on iOS

I have a string constant defined like this: #define kMyString @"This is my string text!"; Somewhere in the code I …

iphone ios string constants nslog
How to print int * & unsigned int* in NSLog?

How to print int* (int pointer) and unsigned int* in log using NSLog? - (int) doSomethingWith:(unsigned int)Msg withWparam:(…

objective-c nslog
How do I debug with NSLog(@"Inside of the iPhone Simulator")?

I'm used to programming and having log messages be viewable. I know you used to be able to use NSLog() …

iphone objective-c cocoa xcode nslog
What is the Objective-C equivalent for "toString()", for use with NSLog?

Is there a method that I can override in my custom classes so that when NSLog(@"%@", myObject) is called, it …

objective-c tostring nslog
iOS 10 doesn't print NSLogs

Nothing prints from NSLog on Xcode 8.0 beta (8S128d). printf is unchanged Here's my code: NSLog(@"hello from NSLog"); printf("…

ios xcode nslog xcode8 ios10