Monday, March 13 2006 @ 12:34 PM CET
Contributed by: cocoa
Views: 2,957
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 ?
Thursday, October 07 2004 @ 07:42 AM CEST
Contributed by: cocoa
Views: 2,860
I'm working on a project that needs to take a bitmap image provided by the user and transform it so that it will print with a single color specified by the user.
Friday, January 02 2004 @ 12:02 AM CET
Contributed by: Mads
Views: 13,185
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
sincerely
Mads E.
Saturday, September 20 2003 @ 11:34 PM CEST
Contributed by: witness
Views: 3,218
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.