I've developed an application on XCode, compiled and built it.
If I run the app on the same machine using Finder, it starts normally.
But if I copy the app to another machine and try to run it, the application does not start.
Is there another step that I forgot after building the application on XCode?
I think it seems to be a simple issu...
I'm trying to disable the CMD+Tab application switcher, so that my application can register that hotkey. I'm looking for something that applications like Witch and LiteSwitch X are able to do (i.e. allow users to use CMD+Tab as the hotkey for my application).
How are they able to do that?
...
I have an opengl game for iPhone/iPad (universal). I added the ability to send an SMS message using MFMessageComposeViewController. Testing in a real iPhone. The SMS composer sheet animates up over my view, I can send the message or not, didFinishWithResult gets called, and when I [self dismissModalViewControllerAnimated:YES] it goes aw...
Let's say I have an object named "foo" with another object named "bar" as property.
When "foo" deallocates, will it automatically remove all references to "bar" so that "bar" deallocates as well? or will "foo" deallocate and "bar" float in memory somewhere? even if all of "bar"'s references are defined in "foo".
thanks in advance.
...
Hi, this is a cross-post of this question @ the ADC forum.
Here's the messages I'm getting:
/Developer/Tools/RunPlatformUnitTests.include:273: note: Running tests for architecture 'x86_64' (GC OFF)
objc9727: GC: forcing GC OFF because OBJC_DISABLE_GC is set
2010-07-14 16:07:42.893 TestXMLDataApp9727:903 Cannot find executable for CFBu...
I am working with a UITableViewController. The method that fails is:
- (void) testLoc {
self.dictionary = [self.delegate getLocationsWithLatitude:@"0.0" longitude:@"0.0"]; //HERE
[self setUpTableArray:dictionary];
}
Test results have shown that the exception is thrown in the first line of testLoc.
- (NSDictionary *) getLoc...
Hey there,
When you create a new application in Xcode, it automatically creates a AppDelegate and a MainMenu.xib. The latter also contains the application main window, which is linked to the AppDelegate as an IBOutlet.
What I tried to do is, use a MainWindow from a different xib-file. However, there's absolutely nothing I can do to pre...
Hi. Is there a globally recognized developer certification for Objective C? any tips on what would make me marketable in objective C/ Mac OS X/ iPhone development?
...
Hi
So, i have a view controller which contains just a scroll view. In viewDidLoad, i add a view to it from a nib, but when i do that, the scrolling stops working. The view i added works though, i.e. i can click buttons, but half of it is off screen.
@implementation JCEKScrollViewController_iPhone
@synthesize scrollView;
- (void)viewDid...
There is no practical reason for this, its just something I was looking at today. Does anyone know if there is a way to create a Block that does not take any arguments. In the example below Block_001 would return 101, does anyone know what I am missing?
int (^Block_001) = ^{ return 101; };
If I add a int argument then the block compil...
Hi, I have a method like this:
- (CGPoint) _convertCGPointCT2UIKit:(CGPoint)ctPoint{
CGPoint uikitPoint = CGPointMake(ctPoint.x + INITIAL_HORIZ_OFFSET,
self.bounds.size.height - ctPoint.y - INITIAL_VERT_OFFSET);
return uikitPoint;
}
Is there any way I can make this a macro?
I tried this but I get errors like "; expected b...
I'm building an Objective-C wrapper for a nasty legacy C-library. Assume I have two Objective-C classes A and B wrapping some related legacy structures. Now I would like to provide a function that converts a given object of class A into an object of class B. The problem is, that the conversion process destroys the internal state of the s...
Hi All,
I want to read the Email by giving username and password via POP3 using iPhone SDK for iPhone 4.0. Whether its possible to do it. If not can any body give me any link or open source to do achieve this functionality.
Thanks in Advance.
...
Now Im sure Im doing something extremely schoolboy here, but Im seriously hitting my head against a wall, for some reason Im getting EXEC_BAD_ACCESS when trying to set an NSNumber property on a custom class. Think Im having one of those days!
Here my test h and m files:
// Test.h
#import <Foundation/Foundation.h>
@interface Test : ...
Hi, I was just thinking, as you can treat Blocks like objects if I create two of them and then add them to an NSArray is there a way to execute them from the array?
int (^Block_001)(void) = ^{ return 101; };
int (^Block_002)(void) = ^{ return 202; };
NSArray *array = [NSArray arrayWithObjects:Block_001, Block_002, nil];
EDIT: Update f...
Hi,
I am learning how to develop iPhone applications and I ran into an interesting problem. In my view controller class, I have a an int variable that I @synthesize and overload the setter (though) this is not needed. When I run the application, I get this trace back:
* Call stack at first throw:
(
0 CoreFoundation ...
I have a finalcut plugin, I can get it to throw an error dialog that normally is closable if I do not bring the focus away from the plugin. If I for example, start the process, switch to Chrome, I see the error get thrown in the background and then click the error's frame,NOT the OK button on the error, the dialog will get stuck behind ...
Windows hooks allows you to poke inside other processes and sometimes alter their behaviors.
Is there such thing for Mac OS X?
Thanks!
...
I'm trying to save some settings from my app to a plist file when it closes, then load them when the app launches. I have 4 numbers saved in an NSArray called array. The loading works fine because if I change the file, the app starts the way the file was changed.
This code works fine:
- (void)LoadSettings {
NSString *path = [[NSBundle ...
I'm using the iPhone port of ImageMagick. I'm trying to loop through the frames of an animated gif and turn each frame into an UIImage. I know I can init a UIImage with NSData which I can init with a const void *. So how to I get the buffer and length of the image?
Here's the code:
MagickReadImage(wand, filename);
while...