I'm using the following code to simulate a click of the mouse:
void PostMouseEvent(CGMouseButton button, CGEventType type, const CGPoint point)
{
CGEventRef theEvent = CGEventCreateMouseEvent(NULL, type, point, button);
CGEventSetType(theEvent, type);
CGEventPost(kCGHIDEventTap, theEvent);
CFRelease(theEvent);
}
void LeftClick(con...
In Xcode (3.2 on Snow Leopard) when I start to type out a function such as
-(void)myFunctionName {
}
When I first start typing the code hint is
-(voidPtr
What is the difference between void and voidPtr? I assume that voidPtr is a pointer of some kind, what cases call for its use? Do I want to be using voidPtr instead of void?
Ca...
Picture the following scenario. I have an iPhone application contained in Xcode project A, and an iPhone application contained project B, each one of these Xcode projects is contained in a separate git repository. There are a bunch of things that I would like to do:
Be able to create a library or Framework from parts of project B that...
Hi,
My question may be a bit stupid, but why can't any object instantiated in IB handle, say, button click? I mean I'm able to add my own object to a xib, and link outlets to cotrols and control actions to object's method, but once I press the button everything just crashes (uknown selector).
Do you guys have a hint around that?
EDIT:...
I want my XCode Objective-C project to be able to detect which configuration it is being built with. How can I achieve this?
Thanks in advance.
...
Hi guys,
I wanted to know how to list data in tableView in different sections BUT from a single datasource.
All examples i saw had number of arrays = number of sections. What i want is suppose I have a 3d nsmutableArray.
If dArray.Id = 1 { //add to first section of UITableView }
else add to Section 2 of UITableView.
Its probably doo...
i want to get all images from imagelibrary either using imagepickercontroller or any other way(like programatically)....
...
I have just added a provisioning profile to XCode (needed to support notifications and in app purchase), setup as needed the build configuration for ad hoc distribution, and tried to run the app on the device (I have done this several times in the past, without any problem).
The app is installed, but it does not start. On the console, I...
I'm trying to zip up my iPhone application for App Store distribution.
The distribution instructions suggest looking in the build log to check if the mobileprovision file was included, but I can't figure out how to show a build log.
Apple's instructions:
To confirm your build was successful, check for the following:
O...
I've been hitting this bug that I don't know what is wrong. When I debug this code and it hits here the program will lock up when it hit the addSubView line and says
terminating_due_to_uncaught_exception
I'm not sure if I'm forgetting something in interface builder or what but the codes does compile.
ViewTypeView is the View's contro...
I'm building a framework project in XCode and everything builds and looks great except there is no Headers directory in the built Foo.framework.
Do I have to add an explicit build phase for this or is there just a setting to which I'm oblivious? PUBLIC_HEADERS_FOLDER_PATH looks promising, but I'm not sure how to use it.
...
Hello, i have a problem for some time which i can't solve:
In the applicationDidFinishLaunching i have this code:
[self checkAndCreateDatabase];
[self readCharsFromDatabase];// which stores into an array some objects
[self readGlyphsFromDatabaseAtId:@"a"];// idem
The second array i'm using into a secondary ViewController and i'm gett...
i want to delete the sms.db file from iPhone using xcode. is it possible to delete it.
...
when i rotate my imageview using this method my application behaves very strange..also when i save the image it saves in old transformation
-(IBAction)rotateClicked
{
CGFloat Angle=(0.5*M_PI);
EditImageView.transform = CGAffineTransformMakeRotation(Angle);
}
here is an image before rotation
and after rotation
but after rotai...
Hey,
I would like to add the current version into the "about" section of my app.
As seen in this attached screenshot Apple offers versioning.
How do you display these settings in your app?
...
i am developing an iphone application. I want to disable a UIslider and want to set the thumbnail image for the disabled slider as the image set get distorted?
...
Where are the Class Action and Class Outlets in Xcode 3.2? They aren't showing up in the Inspector like they used to.
...
Hello,
I have a small little program I am working on just for fun. It's some kind of RPG Character-Generator. My class Character has some properties (NSNumber) for strength, dexterity and so on. Also I have TextFields to display these properties on the user interface.
@interface MyController : NSObject {
Character *rpgCharacter;
IBOu...
I just created a new Cocoa project on XCode 3.2. I'm running it in Snow Leopard.
When I build it for 10.6 it works fine but if I change the active SDK to 10.5 I get this error:
cannot find protocol declaration for 'NSApplicationDelegate'
...
Hi,
I've started to use XCode several months ago, after using IntelliJ for several years, and there are quite a few features that I really miss. XCode is not that bad, but it is lacking some basic stuff.
To trigger the discussion, here are some of the features that I miss most, who knows maybe someone from Apple will bump into this pos...