objective-c

about Objective C installing apps on iphone

objective-c how to install apps on iphone ...

textfield inputs range in interface builder

hi friends .. i have a multiple textfields in my nib file. i want to decide input range in my one textfield 6-16 digits.and don't wanna to change some other textfield input.for that i was made a method called tflimit as below. -(IBAction)tflimit:(id)sender { if([textfields1.text length]>=15 ) { [textfields1 resig...

Getting black screen when loading navigation controller

The following code below is attempting to implement a method where my navigation controller launches to on e of two different views. The problem is that I keep getting a black screen whenever my application launches. #import "SugarCRMReleaseOneAppDelegate.h" #import "SettingsViewController.h" #import "ModuleViewController.h" @implemen...

How to create a method to return UIAlertViews?

Hello all. I have a question about showing an alert on the screen. The thing is: I have an app with 20 to 30 different screens (nibs) And in each nib I do some checking to see if the user has inserted text in a textedit. And some alert messages are identical to others. Like In 3 nibs there is a text field for the user to enter his age, a...

Assigning UTI to file type

I'm trying to add UTI for a pair of file types, matching by extension. I think I've got it setup properly - at the very least, the file extension -> UTI mapping is recognized (I declared it as an imported type in info.plist). However, when I try to get the UTI off of my test file, I get back a dynamic UTI. Here's the sample code I'm usin...

Core Data: Error if deleting unsaved object

I have some trouble with a core data project. I have a NSArrayController with NSManagedObjects in it, and + / - buttons. If i delete a object in the row after the file has been saved it works perfectly, but if I add a new object, and immediately delete it again (without changing any of the default values), i get an error: Serious appli...

Iphone Help Overview of document like in ibooks

Hey guys just wondering if anybody could help me, I have a simple magazine app where the images are loaded from an array into a image view. On the ibooks app there is a button which will take you to a type of overview with all the pages deconstructed as buttons where you choose the page. They are like 3 pages accross and then down. Is th...

iphone store table-cell text into a file

HI, From a table, once i selected the row, i would the row name to be store in a text file. how do i do that? ...

Objective C equivalent to Java's ArrayList

Just wondering if there is an equivalent to Java's ArrayList in Objective-C? Or something that can be used to store objects/data that does not have a set size. Thanks. ...

ObjC: Moving the displayed area of a UIView

Hi! I have a big UIView (.frame == CGRectMake(0, 0, 905, 320) ) currently the left part is shown (that is (0,0,480,320)) and I would like to be able to show the right side on click. I tried to change the UIView's frame to (480,0,905,320) but it does not seem to work. Does anyone know how to do it? it is embedded in a window with .fram...

Checking Internet connection with Reachability 2.2

We are trying to display an alert view when there is no connection and we are using the reachability 2.2 classes from apple. The problem we are running into is that at the start of the program we are always getting an alert view that there is no internet connection but we are connected to the internet. Is there a correct way to check for...

Update from internet

Can someone please tell me how i would go about doing this . An app that updates daily with a new image, and a text label. Do i have to have some sort of plist file from the inter that i update, i cant quite figure out the method. Similar to guardian eyewitness if anybody kniow that app. Cheers :s ...

Why does this code example on Apple's dev site declare three interfaces for the same class?

I'm diving into iOS development while trying to grasp Objective-C and I'm still in that phase where, ever where I look, I see things that don't make any sense to a veteran C programmer like myself. In this Game Kit example on Apple's dev site, one of the header files declares a class interface, three different times... @interface Sessi...

iPhone app: How to display formatted text?

I need to display some simple formatted text inside a small section of a View. The background needs to be transparent because there's a background gradient image. How I should I go about this? Maybe the Web View control will do the trick? thanks ...

Don't worry about `retainCount`? Really?

I've been told to not worry about retain counts. I understand that I shouldn't decide to release or retain using conditional logic based on retainCount, but should I not worry about it? I thought these correspond to memory usage in some way. For instance, if I have a bunch of subviews of UIView that I've also put into an NSArray to be a...

Which app has keyboard focus?

In Cocoa/ Objective C I need to be able to programmatically find out which app or process has the keyboard focus. This may be done by doing a 'hit-test', but I'm not exactly sure. I also need to get the process ID number and Window Title of app that has the keyboard focus. Objective C or C only please! Snippets appreciated! ...

Initial View over Split View Based Application

Hey guys, I'm trying to add an initial view to a split view based application. I want the user to press a button on the initial view to navigate to the split view. However, I'm rather clueless on how to accomplish this. Any ideas/tips? Thanks ...

xcode project-/target-settings-syntax for linker flag force_load on iPhone

Hi all. I am confronted with the double bind, that on the one hand for one of the 3rd party static libraries, my iPhone application uses, the linker flag -all_load has to be set in the application project- or target settings, otherwise the app crashes at runtime not finding some symbols, called internally from the lib, on the other hand...

Xcode - SenTestingKit not found

Hi all, I have an issue that popped up when I upgraded my version of xcode. I use unit tests, and I now when I try to import SenTestingKit (#import <SenTestingKit/SenTestingKit.h>), I get this error: SenTestingKit/SenTestingKit.h: No such file or directory. I have looked at my build settings, and I have the following configuration op...

Problem opening a page in different UIWebViews using Javascript

I have an ipad app, with the majority of the functionality being a web application. The UI is just three UIWebViews that load the pages. Every link that is clicked is intercepted, and I have a request variable in the URL called "iPadTarget." EX: http://www.somedomain.com/blah.asp?iPadTarget=2 The above code would open in the second we...