Skip to main content

Posts

NSAutoreleasePool

Any idea why i get these messages - "NSAutoreleasePool is unavailable: not available in automatic reference counting mode" "ARC forbids explicit message send of 'release' " import int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; }

iPhone gcc-4.2 failed with exit code 1

Help, I'm at wits end -- sometimes my Xcode runs -- sometimes it doesn't I keep getting I installed Xcode 4.1 then upgraded to 4.2 I can't even run a freshly made project :( ProcessPCH /Users/david/Library/Developer/Xcode/DerivedData/iDecide-eurvfbqsagnsmkgdvuhytbalyxkj/Build/PrecompiledHeaders/iDecide-Prefix-fjnitkqizspbsgezzdhvfinujnhz/iDecide-Prefix.pch.pth iDecide/iDecide-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/david/Documents/tmp/iDecide setenv LANG en_US.US-ASCII setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/Users/david/.rvm/gems/ruby-1.9.2-p180/bin:/Users/david/.rvm/gems/ruby-1.9.2-p180@global/bin:/Users/david/.rvm/rubies/ruby-1.9.2-p180/bin:/Users/david/.rvm/bin:/Users/david/apache-maven-3.0.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/usr/local/Cellar/android-sdk

How to properly update Three20?

I've just update my version of Xcode to 4.2 - Xcode has given me a load of warnings from the Three20 source. - So I guess the version of Three20 I have must not be compatible with iOS 5? I'm using the recommended shared directory layout but have manually downloaded the files from the zip, not using git. Once I have re-downloaded the files into the shared directory, should I do anything else to update my project - run the Three20 python script?

warning: UUID mismatch detected with the loaded library

i have been getting this since updated to 5.0.1 warning: UUID mismatch detected with the loaded library - on disk is: /Users/alfredjunco/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/CoreLocation.framework/CoreLocation i also got this one but i don't know if it matters unable to load symbol file: warning: Unable to read symbols for /Library/MobileSubstrate/MobileSubstrate.dylib (file not found). warning: No copy of MobileSubstrate.dylib found locally, reading from memory on remote device. This may slow down the debug session.

Anti-aliasing lines when using CATransform3DRotate

I copied the code from the answer to How do I apply a perspective transform to a UIView? in order to achieve the following image. Note, however, the jagged lines separating the levels. Is there away to perform this kind of perspective transformation in a way that anti-aliases these jagged lines? Edit I've tried the solutions offered by DarkDust in the comments on this post. None seem to work. Here's my code: levelView = [[UIControl alloc] initWithFrame:CGRectMake(100, 60, 160, 230)]; [self addSubview:levelView]; levelView.transform = CGAffineTransformScale(self.transform, .8, .8); CALayer *layer = levelView.layer; //DarkDust's 2nd comment layer.borderWidth = 1; layer.borderColor = [[UIColor clearColor] CGColor]; CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity; rotationAndPerspectiveTransform.m34 = 1.0 / 1000; rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, 45.0f * M_PI /

'UITabBarItem' may not respond to 'SetAction'

I have a number of tabs in my app. The tabs are working with no issues, but I'm getting some warning messages (in the title above) which I would like to get rid of. My code is as follows: -(void)pressItem1:(id)sender { [self presentModalViewController:settingsViewController animated:YES]; } -(void)pressItem2:(id)sender { [self presentModalViewController:infoViewController animated:YES]; } -(void)pressItem3:(id)sender { [self presentModalViewController:aboutViewController animated:YES]; } -(void)viewDidLoad { self.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background.png"]]; CGRect frame = CGRectMake(0, 0, 480, 49); UIView *v = [[UIView alloc] initWithFrame:frame]; UIImage *i = [UIImage imageNamed:@"smallMenuBackground.png"]; UIColor *c = [[UIColor alloc] initWithPatternImage:i]; v.backgroundColor = c; [c release]; [mainTabBar insertSubview:v atIndex:0]; [v release];