obj c

  • Get Current Directory in Objective-C

    Since Mac OS X is a unix based system, you can always use “getcwd” from the standard C library, but in general if you want to stick within the context of Objective-C/Cocoa, see the examples below. Here’s one snippet you… Continue reading

  • Show Dialog Message Box in Objective-C Cocoa

    There are a few ways to achieve this in Objective-C/Cocoa, and I found NSAlert to be the simplest base class for this purpose. See example below of a small Utility class with this functionality. Util.h Util.m References iphonedevsdk.com, http://www.iphonedevsdk.com/forum/iphone-sdk-development/8478-simple-message-box-popup.html blogspot.com,… Continue reading