foundation
When using autorelease, when is it actually released?
Sometimes I wonder when something gets auto开发者_运维知识库released. I added an NSLog in the dealloc of various objects, but I couldn\'t find anything useful.[详细]
2023-01-22 23:55 分类:问答Convert NSData to NSString and ignore null bytes?
I need to convert a NSData object to an NSString. It is meant to be gibberish but I need it for debbuging.[详细]
2023-01-20 14:48 分类:问答stringWithFormat: with unknown datatype
I am making a framework and I have this code (conditions is an NSDictionary): for (NSString *key in conditions) {[详细]
2023-01-18 07:24 分类:问答CoreFoundation vs Foundation
In iPhone development, speed is of the essence. Does anyone know if there is a speed difference between using a CoreFoundation type (like CFMutableDictionaryRef) versus a Foundation type (its counterp[详细]
2023-01-17 09:28 分类:问答xCode command-line > foundation problem
I\'m trying开发者_运维技巧 to set up a command-line > foundation \"hello world\" project. (as written in the book \'learning objective C for mac\') ...When I select \'build & run\' with the defaul[详细]
2023-01-14 10:44 分类:问答NSFileManager fileExistsAtPath: & symbolic links
In my ~/Library/Caches/ directory, I have a symbolic link to my app\'s bundle, and some symbolic links to images (e.g. \"开发者_JAVA技巧big_picture.png\" is a symlink to \"small_picture.png\"). When I[详细]
2023-01-14 07:19 分类:问答Application behaves differently when output is redirected to an NSPipe object?
I have an application which works with sockets and reads / writes data. It uses Foundation framework combined with CFNetwork and stdio.[详细]
2023-01-13 17:25 分类:问答Simplest way to loop between two NSDates on iPhone?
What\'s the simplest way to loop from one date to another? What I want conceptually is something like this:[详细]
2023-01-09 20:26 分类:问答Find out the working folder in a Foundation executable?
I have a console program whi开发者_StackOverflowch is linked to the Foundation framework on Mac. How do I find out the folder the executable is in?Even though the tool is not in a bundle, you can stil[详细]
2023-01-09 12:00 分类:问答Sane(r) way to get character-encoding of the CLI in Mac OS X?
I was writing a CLI-Tool for Mac OS X (10.5+) that has to deal with command-line arguments which are very likely to contain non-ASCII characters.[详细]
2023-01-04 11:58 分类:问答