Friday, February 1, 2013

File operation in objective C

You can use the standard c functions. fopen(), fread(), fwrite(), open(), read() and write(). You can write objects of NSArray, NSDictionary, etc directly into file. There is having separate method ex writetoFile: method. Example if u wrote array of string in Array and if u wrote that array into file. File will be having stuff like this <?xml...

Some useful information

nib - it is called for .xib files (nib -  NeXT Interface Builder).  After compilation of xib we get the .nib file. .xib is a xml file. Flow when nib files are used:- When nib file loaded in to memory all the connection related to that nib files are set mean all IBoutlet get allocated and initialized. After the connection has been set awakeFromNib...

Protocols in Objective C

Protocols are like interface in Java. It is having all methods. The implementation of the methods of this protocols are implemented in other class in which they are derived/subclassed. Syntax / Protocols are declared as follows:- @protocol NSObserver - (void) response: (NSString *) str; @end When class is derived from protocol then that...

About

Powered by Blogger.