How to remove all .svn folder from source code in Linux / Mac?

Cited from: http://www.techiecorner.com/154/how-to-remove-all-svn-folder-in-linux-mac/

find ./ -name “.svn” | xargs rm -Rf

Blogged with the Flock Browser

Converting an NSImage to grayscale

http://archives.devshed.com/forums/bsd-93/problem-with-converting-an-nsimage-to-grayscale-1326186.html

Blogged with the Flock Browser

Decoding a UTF-8 NSString

http://www.codza.com/decoding-utf-8-nsstring

Blogged with the Flock Browser

Create NSValue object that holds Integer value

An NSValue object is a simple container for a single C or Objective-C data item. It can hold any of the scalar types such as int, float, and char, as well as pointers, structures, and object ids. The purpose of this class is to allow items of such data types to be added to collections such as instances of NSArray and NSSet, which require their elements to be objects. NSValue objects are always immutable.

    NSValue* valObj;
    int theInt = 123;
    const void *myVal = &theInt;
    void *valPtr;
    valObj = [NSValue value:myVal withObjCType:@encode(int*)];

    [valObj getValue:&valPtr];

Blogged with the Flock Browser

Encryption for cocoa, cocoa touch

http://iphonedevelopment.blogspot.com/2009/02/strong-encryption-for-cocoa-cocoa-touch.html

Blogged with the Flock Browser