cocoa 562

  1. How to check for an active Internet connection on iOS or OSX?
  2. Constants in Objective-C
  3. What does this mean? “'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X”
  4. @class vs. #import
  5. How do I create delegates in Objective-C?
  6. Cocoa Autolayout: content hugging vs content compression resistance priority
  7. @synthesize vs @dynamic, what are the differences?
  8. What does the NS prefix mean?
  9. Cocoa: What's the difference between the frame and the bounds?
  10. How to print out the method name and line number and conditionally disable NSLog?
  11. How do I iterate over an NSArray?
  12. throwing an exception in objective-c/cocoa
  13. Is It Possible to NSLog C Structs (Like CGRect or CGPoint)?
  14. Exception thrown in NSOrderedSet generated accessors
  15. What are best practices that you use when writing Objective-C and Cocoa?
  16. How do I use NSTimer?
  17. How do I convert NSMutableArray to NSArray?
  18. Best way to define private methods for a class in Objective-C
  19. Hidden Features of Xcode
  20. Difference between objectForKey and valueForKey?
  21. What is the best way to unit test Objective-C code?
  22. NSString property: copy or retain?
  23. Core Data vs SQLite 3
  24. How do you print out a stack trace to the console/log in Cocoa?
  25. What does “@private” mean in Objective-C?
  26. “Unknown class <MyClass> in Interface Builder file” error at runtime
  27. Objective-C: Extract filename from path string
  28. Delete/Reset all entries in Core Data?
  29. Check that an email address is valid on iOS
  30. Execute a terminal command from a Cocoa app
  31. Best way to remove from NSMutableArray while iterating?
  32. What's the Best Way to Shuffle an NSMutableArray?
  33. How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Core Graphics)?
  34. How do I declare class-level properties in Objective-C?
  35. NULL vs nil in Objective-C
  36. Why are Objective-C delegates usually given the property assign instead of retain?
  37. Regular expressions in an Objective-C Cocoa application
  38. iOS - Build fails with CocoaPods cannot find header files
  39. What is the best way to solve an Objective-C namespace collision?
  40. How to create a Menubar application for Mac
  41. How to initialise a string from NSData in Swift
  42. How to convert CFStringRef to NSString?
  43. How does an underscore in front of a variable in a cocoa objective-c class work?
  44. What's the optimum way of storing an NSDate in NSUserDefaults?
  45. NSString tokenize in Objective-C
  46. Objective C - Remove last character from string
  47. Why can't code inside unit tests find bundle resources?
  48. How to do string conversions in Objective-C?
  49. What does the property “Nonatomic” mean?
  50. Fix warning “Capturing [an object] strongly in this block is likely to lead to a retain cycle” in ARC-enabled code