Monday, March 13 2006 @ 12:34 PM UTC
Contributed by: cocoa
If you don't want the image to be accessible in the application bundle or if the image has to be in a command line tool (without bundle): how do you embed an image in the source code - kind of static NSData ?
Friday, January 02 2004 @ 12:02 AM UTC
Contributed by: Mads
How do I get evenly distributed numbers between 0 and 1 in Objective-C? The built-in random() function delivers the same number everytime you start your application.
A fine example to such a random number generator would be JavaSript's Math.Random(), but I don't know how that works
Saturday, September 20 2003 @ 10:34 PM UTC
Contributed by: witness
SEL is the data type for storing a shorthand notation of a method's name. @selector() is a pseudo-function you can use to get a SEL from a method name. Together, they let you do the equivalent of calling a function via a function pointer, but for a method of an object.