Sometimes I encounter code that has *, sometimes **. Can anyone explain what they mean in Objective C? (I used to be a Java programmer, with experience in C/C++.)
Hi guys
Im wondering what is the simplest way to get the current price of a stock from say yahoo finance (or similar) in objective-C For the iPhone SDK.
Simple is the key, I am looking for current price, and days movement.
I havent had much luck finding an iPhone code example or library.
regards
Hi,
Why can't I do this, and how could I perform the same behavior in ObjectiveC ?
@interface Test
{
}
- (void)test:(Foo *)fooBar;
- (void)test:(Bar *)fooBar;
@end
Thanks in advance !
I was wondering if there were a way to extract information from an objective-c app, static or dynamic library and/or framework?
Information such as an array of class names without instantiating or running the target.
I've checked google and the apple developer documentation and haven't found anything.
Frank
How to Call drawRect programmatically in objectivec ?
I want to call drawrect method of a view in my UItabbarcontroller. How i can do this ? Thanks in advance..
Is there a way in Objective-C to search an array of objects by the contained object's properties if the properties are of type string?
For instance, I have an NSArray of Person objects. Person has two properties, NSString *firstName and NSString *lastName.
What's the best way to search through the array to find everyone who matches 'Ken' anywhere in the firstName OR lastName properties?
Does anyone know of an Objective-C framework that takes care of registering an app? I'm interested in the GUI/30-day trial side more than the actual verifying of serial numbers.
Hello all,
I am looking for good example code for using delegate and events in objective c?
i am familiar with delegate and events in C#.
so if someone can help me with few lines of code it will be very helpful.
Hi guys,
I was wondering if there were any libraries out there to allow Mac desktop developers on Objective-C to create shareware applications, similar to sharify for Air. Perhaps through use of Paypal etc.
I'm struggling a bit with some objectivec syntax. Can someone please elaborate on the usage of * in the following instance method.
- (IBAction)sliderChanged:(id)sender{
UISlider *slider = (UISlider *)sender;
}
I realize that we are creating a variable typed as UISlider and then setting it to sender once it is cast as a UISlider. However, I don't understand what the * are for and why
UISlider slider = (UISlider)sender;
won't work.
How is a hash of integer array can be represented in objective-c? Here is the ruby hash as an example:
hi_scores = { "John" => [1, 1000],
"Mary" => [2, 8000],
"Bob" => [5, 2000] }
such that can be accessed by:
puts hi_scores["Mary"][1]
=> 8000
hopefully easy to serialize too. Thanks!
in Objective-c I have this function prototype:
-(NSString*)formatSQL:(NSString*) sql, ...
I may pass to this function any type of parameters: NSString, NSNumber, integer, float
How can I determine in the function if a parameter is an object (NSString..) or a primitive (integer...)?
thanks
BrochPirate
Like in java:
A final class cannot be subclassed. This is done for reasons of security and efficiency. Accordingly, many of the Java standard library classes are final, for example java.lang.System and java.lang.String. All methods in a final class are implicitly final.
How can I achieve this behavior in objective-c?
Is there a library already created to talk with an CAS server via objective-c? I know there are many supported clients but have yet to find anything I can use on the iPhone.
Is there a way to tile an image in objective-j on a CPView?
something along the lines of:
[CPImage alloc] initWithPatternImage:@"Resources/grid.png" size:CGSizeMake(5.0, 5.0)]
Thanks guys ;)
What is the best method for using Regular Expressions within Objective-C?
There seems to be some open source project that provide regex support, can any one recommend one?
Also I looked at NSPredicate, can anyone suggest any regex examples?
Background: I want use regex mainly for validation, IP's, email addresses, internal ID's etc
I have a critical method in an Objective-C application that I need to optimize as much as possible. I first need to take some easy benchmarks on this one single method so I can compare my progress as I optimize.
What is the easiest way to track the execution time of a given method in, say, milliseconds, and print that to console.
Is there any reason why you shouldn't use the "-std=c99" flag for compiling Objective-C programs on Mac? The one feature in C99 that I really like is the ability to declare variables anywhere in code, rather than just at the top of methods, but does this flag causes any problems or create incompatibilities for iPhone or Cocoa apps?
The Compiler claims an error saying: "initializer element is not constant", when I try to initialize a static variable inside a method with a call to a static method (with + in its definition).
Anyway I can tell him that this method always returns the same value. I know this is not the same as static method, but there seems to be no constant methods in Objective-C (other than macros which won't work here because I am calling UI_USER_INTERFACE_IDIOM() from inside the method).
Is there any difference in declaring objects in Objective-C between (1) and (2), besides the style and personal preference?
(1) One-line declaration, allocation, initialization.
Student *myStudent = [[Student alloc] init];
(2) Multi-line declaration, allocation, initialization.
Student *myStudent;
myStudent = [Student alloc];
myStudent = [myStudent init];
Hello, everybody.
Does someone here knows a face detection API for Objective-C? I just want to detect one or more faces inside a photo, so it's not necessary face recognition.
I want to build something similar to the iPhoto's feature that puts a square on all faces in a photo.
It would be nice if the API can be used on iPhone apps too.
Regards.
Hello,
How can I post a full hyperlink with its parameters to another link in objective-c?
Like: url=http://www.test.de/index.php?param1=23¶m2=23¶m3=345
Thanks
Is there any PayPal Objective-C (Cocoa) API?
Or if there's not, is there any way to communicate with PayPal to get like current PayPal balance, etc? Was thinking in doing a mac PayPal app, more for personal use.
Thanks in advance.