I've been messing around with IDA Pro and trying to disassemble my own products just for the sake of it.
I've noticed a couple of things I don't understand because my assembly language knowledge is terrible. Here is a little chunk of code which invokes CGContextSetRGBStrokeColor.
CGContextSetRGBStrokeColor(ctx, 1, 1, 1, 1);
In IDA i...
Hi, I'm using Xcode 3.2.3 and Xcode 3.2.2. In Xcode 3.2.3 [NSDate date] (or any NSDate methods) returns 2553 year and current month, year, time. It's ok in 3.2.2. I tried to find where it can be placed at default values but I didn't find that option. I removed and installed it again but it didn't help too. What should I change?
Thanks ...
Hi,
I'm currently using CGContextMoveToPoint, CGContextAddLineToPoint & CGContextStrokePath to draw lines on a view.
Basically making a snake game that also allows user to move diagonally.
Is there a way to find when 2 lines that I draw intersect or do I have to manually calculate each lines and see if anything intersects?
Thanks,
...
Hi all,
Is it possible to use vectors in Coca Touch? If so, what library must be included?
I was following a general C tutorial on them an the only thing needed was to #include <vector>
But XCode states that there is no such file or directory.
Any pointer to a library that provides such functionality is appreciated.
Regards
~dhp
...
How do you create a method in Objective-C that accepts a NSString format (using the comma seperated list list of arguments to substitute into the format). Something like:
// Hello Kevin
NSString *name = @"Kevin";
[NSString stringWithFormat:@"Hello %@", name];
...
I have started trying to understand the way apple implements the photoviewer app for the iPhone after watching both videos from WWDC 2009 and 2010 about scrollViews and paging through photographs and I am taking each step very slowly to understand the processes very well before I implement it all into my app.
I have run into a couple of...
I've been working on a app that I want to earn money from, but nobody would buy it if it costed money. Does anyone know any tutorials, or know themselves, how to get iAd into an app? Thanks.
...
i have the text in a string as shown below
011597464952,01521545545,454545474,454545444|Hello this is were the message is.
Basically i would like each of the numbers in different strings to the message eg
NSString *Number1 = 011597464952
NSString *Number2 = 01521545545
etc
etc
NSString *Message = Hello this is were the message is.
...
I have a number of private frameworks I want to use, however I cannot find any headers for them. Is there a de-facto way of getting arguments from C function calls using IDA Pro? (Not ObjC messages).
Edit: Oops, I meant C not C++.
...
Hello all,
I am trying to insert an image into a table cell based off a person search in our company directory. This is pretty easy to do, but the problem is some people do not have pictures so it is throwing their alignment off. Is there any way to have the cell keep that place blank if they don't have a picture, and not slide the t...
I'm using Matt Gallagher's Audio Streaming Project. I downloaded the code/project and it runs/compiles/links just fine.
The problem is when I try to integrate the AudioStreamer class into my own project. I added all the necessary frameworks and checked over the project settings to make sure they match Matt's project as much as possibl...
Does a comparable function to 'isKindOfClass:' exist for comparing a 'Class' to another (i.e. without constructing an instance of either class). For example, given:
Class class = NSClassFromString(@"NSNumber");
[NSNumber isKindOfClass:class]; // YES
[NSString isKindOfClass:class]; // NO
Thanks!
...
I have some buttons on a view for navigation and when a user presses them my code inserts the appropriate new view page (xib) under the navigation buttons. Each new view page that I insert as a subview has some buttons that are supposed to pop up a new view over everything, including the navigation buttons. Here's one of my button action...
I have a function which returns CFTypeRef. I have no idea what it really is. How do I determine that? For example it might be a CFStringRef.
...
Hi,
I have a variable ( float slope ) that sometimes will have a value of nan when printed out since a division by 0 sometimes happen.
Trying to do an if else for when that happens, how can I do that? if (slope == nan) doesn't seem to work.
Thanks,
Tee
...
I need to build an array using something like the following:
CLLocationCoordinate2D points[4];
points[0] = CLLocationCoordinate2DMake(41.000512, -109.050116);
points[1] = CLLocationCoordinate2DMake(41.002371, -102.052066);
points[2] = CLLocationCoordinate2DMake(36.993076, -102.041981);
points[3] = CLLocationCoordin...
This is a rather annoying issue, The program itself works great except when I go and set it to start at login.
I've been testing it by logging off and in. The program starts when I log in but is hidden behind the desktop. When I click the app icon in the dockbar it comes to the front where it should have been to begin with.
The quest...
Hi everyone, is it possible to get an NSWindow to block everything in my application just like an Alert panel so that it is the key window until closed?
...
I can't figure out the prototype for this simple function:
In stack:
Function call:
That's what I got so far, and it causes an error.
//No idea
void CameraDeviceCreate(int one,int two,int* three);
There are three registers used (R0,R1,R2) so there should be three arguments. Third one refers to a stack variable (I still don't get...
I was trying to track a strage memory allocation bug so I overrode the retain and release methods of my class. I noticed that when assigning an instance of this class to a property of another, the retain count of the object increased, but my redefined retain was never called.
How can this be possible? Are (retain) properties retaining t...