I'm trying to make a general error handler for an iPhone app that brings the user to a recovery screen whenever any general error is thrown in the application without putting a try/catch block around every single method in the application.
Using NSSetUncaughtExceptionHandler doesn't work because the application terminates after the hand...
I came across a library written in Objective C (I only have the header file and the .a binary).
In the header file, it is like this:
@interface MyClass : MySuperClass
{
//nothing here
}
@property (nonatomic, retain) MyObject anObject;
- (void)someMethod;
How can I achieve the same thing? If I try to declare a property without i...
I'm setting up Cocotron to cross-compile my Mac app into an EXE for Windows... One of the compiler args I had to take out to get it to build using the Cocotron Windows compiler was the flag that enabled Objective-C garbage collection in GCC.
Will I have to add manual reference counting memory management back into my app in order for it...
I am new to the iPhone development environment so be gentle:
Currently writing an iPhone game app that will also have a high score view. Was wanting to make this view so that it was on its own and I could call it from another class (.m file)
Question is, how do you call another class file? I know I need to include the header from tha...
I've downloaded a free application from App Store (very nice application for instance) called ReadTheQRCode and it dont asks you to take the picture to decode the QRCode, my point is, is the application using the framebuffer of the camera on iPhone 3G or it is taking several pictures at a given time, ommiting the iris animation, the edit...
Apple has (apparently) changed how they calculate KB, MB, and GB in 10.6. Instead of using 1024, they use 1000. (As described here: http://reviews.cnet.com/8301-13727_7-10330509-263.html)
My question is how do deal with this in my code? I'm trying to get the amount of space free, so I get the number of bytes via NSFileManager. When I go...
::Edit::
It works now? haha, maybe I just didn't save my latest IB...who the hell knows.
Thanks!
Hey,
This is my first time playing around with desktop applications (I have experience with iphone applications) and I'm stuck - My text view will not update to show any text:
.m:
@synthesize textView;
NSString *txt = [[[NSString all...
Hello,
I created a instance of my ViewController(TimeLineViewController), which will be presented. This ViewController contains a UITableView, which gets the cells from a instance of my TableViewCell. So the ViewController creates an instance of the TableCellView.
The TableViewCell contains a UITextView with enabled weblinks. Now I want ...
What I want is to override UINavigationBar tintColor setter and force default color to it. Bellow is my code (which of course fails). Is there a way to make it work?
@implementation UINavigationBar (UINavigationBarCategory)
- (void)setTintColor:(UIColor *)tint {
self.tintColor = [UIColor greenColor];
}
@end
...
I am just trying to create a simple Twitter app. Currently I have a UITableViewController that shows everyones name and pictures in the cells. When the cell is clicked, it pushes a new UIViewController that has a UIImageView and a UITableView. Their name is displayed as the title on the Navigation Bar and their picture is shown in the UI...
Hello,
I set the size of my UITableCell´s with this:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString * vergleich = [nachricht objectAtIndex:indexPath.row];
CGSize size = [vergleich sizeWithFont:[UIFont fontWithName:@"Helvetica" size:14]
constrainedTo...
Hi folks. Does anyone know how to obtain the path to the current directory when running xcodebuild (mainly, the project directory) and write files to it? I'm trying to save the results of some unit tests to disk from my obj-c code, but I'd rather not dump them deep in the app's document path if possible. I might be able to append '../../...
Hi,
I need to find the driving distance between 2 locations. I do not need to display the directions in a map, just need to calculate the distance, which I need to use in my application.
Does MapKit allow this? Is there an alternative that can be used?
I am able to get forward geo-coding using CloudMade, but there doesn't seem to be ...
If learned the hard way that you should remove the delegate from an object if the life span of the delegate is shorter than the object. But how do you do this if you don't have a reference to the object anymore?
In my iPhone application I have a view controller vc which performs an asynchronous activity and is displayed as a modal view....
Hi all,
Here is the situation I have:
ProjectA - Xcode static library project.
ProjectA contains logical code group ExternLib with file ExternLib.h. ExternLib.h itself is in the folder Classes/lib/ExternLib (relative to ProjectA folder). Within ProjectA, I use ExternLib.h simply as: #import "ExternLib.h". This works fine.
Next I have ...
I am working on an app for a business that is essentially a catalog. The client has a website that uses a MySQL database, but he doesn't want that to be used by the app. His website offers RSS feeds, but I don't think that this would be a good idea. The app is supposed to be searchable based on a number of (optional) factors and show det...
question says it all. (I reserved 2 library books which came on the same day. I saw them on the shelf and realized that they were the same except one was ObjC and one was ObjC 2.0. (not full titles...)
Bonus, what is Objective C++? objectie
...
I need to import a list of about 40,000 words into my Iphone app. The list will be the same every time the app starts. It seems that property lists and text files are reasonable options.
Any reason to prefer one over the other? For reasons I don't understand, finder says the property list on my mac is 1MB, while the text file is only...
The code generator Accessorizer has an option to assign IBOutlets rather than retaining them. For example, compare these two generated lines:
@property(nonatomic,retain)IBOutlet UIImageView *backgroundView;
@property(nonatomic,assign)IBOutlet UIImageView *backgroundView;
Why would I want to assign IBOutlets, while retaining all other ...
Can I create a table (TableView) and have it display values for three Columns:- Col1,Col2,Col3 with N values under these three columns?
Col1 Col2 Col3
Value1 Value1 Value1
Value2 Value2 value2
Value3 value3 value3
.... ... ...
.... ... ...
.... ... ...
Va...