This has been driving me crazy and I hope someone can push me in the right direction. I have two UIViews that represent the left and right sides of a book. I have successfully used CATransform3DMakeRotation to rotate one UIView so that it flips up 90 degrees so that it just becomes a line. Now I want to start the other UIView in the "fli...
Hi,
I am having a weird problem. I am using a method from Apple's private frameworks in my application. When I call it for the first time, it works. When I call it for the second time immediately without anything in between, it crashes. However, if I put NSLog between the two calls, it works wonderfully. So I try removing NSLog and puti...
A tester sent this crash file:
Not sure what an EXC_CRASH is.
UPDATE:
I can randomly replicate it on device (never in simulator) when rotating my phone. Here is my rotation code:
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfac...
HI,
I am using Xcode3.2.3. i want to know that what is the build version of clang-analyzer that Xcode is using ???
the current clang-analyzer build version is 247.
...
Let me preface this by saying that I'm a very raw iPhone developer.
I'm making a static library that can be used in iPhone apps. It needs to show a view but static libraries, as I understand it, cannot include nibs (or xibs, in my case). So, I have created a separate bundle containing the xib I need. I then include the bundle along with...
I have some code that I want to run in a utility application whenever the main view is shown. I put the code in viewDidLoad, and it only runs when the program starts up. If I flip to the other view, and then flip back to the main view, the code doesn't run. So how can I get this code to run everytime the main view is shown?
...
Hi, I have a UIView that I use as a container for four separate subviews. At any one time, only one of the subviews is visible and the rest are hidden. Right now, when switching between the views, all I am working with is setting or inserting the hidden property.
I'd like to have some sort of an animated transition to give the app a ...
I've added several localizations to my osx applications.
English
Simplified Chinese
Traditional Chinese
Italian
French
and then trying to test other localization without change system language(default is English).
but no matter which language I set in the key CFBundleDevelopmentRegion at info.plist file.
it always shows me the defa...
How do I add a badgeValue or setApplicationIconBadgeNumber to a button?
I'm wanting to add a badgeValue to buttons. In the following picture you can see the app has a e-mail icon with a badge on it representing how many unread messages there are.
I am creating an app that is similar; it will have a (faux) Mail system where you get me...
The following is my XML file. i am parsing it with NSXMLParser.
But parsing methods have not been called.
Any Solution ?
Thanks.
<?xml version="1.0" encoding="windows-1252"?>
<typelokale>
<post>
<deptid>1</deptid>
<department>Kontor</department>
</post>
<post>
<deptid>2</deptid>
<department>Butikk/Servering</dep...
is there a class available to check if an array doesnt contain an object?
i want to do something like
if [(myarray doesntContain @"object")]
is this possible
thanks
...
In C# I can write something like this:
enum MyEnum : byte { Value1, Value2, Value3 }
and the integral type of MyEnum will be byte.
In Objective-C I want the size of MyEnum to be 1 byte. How can I do it?
...
In this tut http://blog.lyxite.com/2008/01/compile-objective-c-programs-using-gcc.html it says that after installing gnustep for windows I can run gcc to compile my prog.
But where is it installed ? I can't find it under Gnustep folder though a GNUstep\mingw\bin folder with a bunch of files exist. So isn't the package install bugged ?
...
I have deliberated endlessly over which language/framework best suits the following. I need to develop a HPC framework. All processing will be completely OO. It will pass objects between instances (external) and internally between threads & engines. The Objects will be an extension of Active Messages.
These instances could run on mobile...
I have created a UIMenuController and have set it a custom menu item like so:
UIMenuController *menuController = [UIMenuController sharedMenuController];
UIMenuItem *item1 = [[UIMenuItem alloc] initWithTitle:@"Do This" action:@selector(item1)];
[menuController setMenuItems:[NSArray arrayWithObject:item1]];
But I wanted that object to ...
Any other package like this
http://code.google.com/p/oscompiler/downloads/detail?name=OSCv0.1.4.zip&can=2&q=
I'm surprised by the very small size. Do I need to install Gnustep for the headers file ?
...
I know how to compile the objective c program using gnustep version of mingw.
But I don't like their shell and I want to use the standard mingw gcc compiler.
I put this gcc bin directory in environment path of course, open command prompt in my helloworld.m directory
#import <Foundation/Foundation.h>
int main (int argc, const char * ...
Ok , I'm consfused about an error :
error: incompatible type for argument
1 of 'initWithFrame:'
This is what causes it:
operationLabel = [[NSTextField alloc] initWithFrame:CGRectMake(0, self.frame.size.height / 2 - (40 * 3), self.frame.size.width, 100)];
The definition is:
- (id)initWithFrame:(NSRect)frameRect;
So the firs...
I have a very simple subclass of UIViewController:
@interface RoastChickenViewController : UIViewController {
IBOutlet UISlider *weightSlider;
}
@property (nonatomic,retain) UILabel *cookingTimeLabel;
- (void) weightValueHasChanged:(id)sender;
@end
My xib file is set to have a RoastChickenViewController as it's File's owner ...
Hi,
I have question about allocating and releasing objects:
if I have code like this:
MyObject *object = [[MyObject alloc] init];
NSMutableString *string = [[NSMutableString alloc]initWithString:@"bla"];
object.myString = string;
NSLog(@"retain count: %d",[object.myString retainCount]); //gives me 2
[string release];
NSLog(@"retain co...