objective-c

Web View Not Showing Text On Fast Orientation

Hi All, While doing fast rotation from one landscape mode to another landscape mode or same for portrait, the webview is not showing the text. To show that text, it needs a scroll from right. That text comes from the HTML. ...

How to efficiently set Cursor for an NSView?

I have an NSView that is drawing a collection of irregularly shaped (and overlapping) application managed objects: that obviously can't be described by efficiently using non overlapping rectangles. I want to change the cursor when it it over one of these objects. The usual method seems to be to set up tracking rects in response to -(vo...

iPhone Memory Management

Hello Stackoverflow fellow family members! I've got question regarding memory management in iPhone. What I did understand was below method -(void) dealloc { // something else to release whatever // such as Object Created using keyword 'alloc' // but also Object destroy here its retain value reaches iff 0 // if I do put...

Detect When Return to a View

HI How can I detect when I return to a view? I have an iPad app in development and I want to do something upon returning to a certain view. How can I do this? Thanks. ...

Unhide the keyboard in iphone

Hi In my application what is want is when user clicks on button next view is pushed and default keyboard should be open in the pushed view . Thanks in advance ...

Returning statuses from MGTwitterEngine

I am using MGTwitterEngine in an iPhone application to make a simple call for user statuses. The engine has a delegate method: - (void)statusesReceived:(NSArray *)statuses forRequest:(NSString *)identifier And I can see my statuses logged in the console. My question is what is the best way to then use the statuses and be informed when...

Can't compile objective c app using GNUStep

I've downloaded gnustep core \ gnustep system (for Windows) and come example apps. When i run the gnustep shell from start>all program> GNUstep> shell, navigate to the folder containing en example makefile and type make, i get the following error : Compiling file main.m /bin/sh: gcc: command not found so basically i can't get anything...

How to add UIImagePickerController as a sub view instead of Modal View

I have a segment controller on one of my views and now on the 0th index of segment controller I want to add UIImagePickerController (for showing camera view to user) by adding as sub view and not by ModalViewController. Right now the view gets loaded but It does not show any camera view. I am able to show the camera view by presentModalV...

Large Switch Statements And Efficiency

I'm taking a day off banging my head against memory management and opengl-es to try and boost efficiency. Part of the app we're working on accesses vast tables of data. These data were supplied to us in the form of switch statements, mostly. In all, I have four switch statements, each with 2000+ cases, expected to grow. How poor is the...

Core data file size

Hi, I'm looking into storing lots of number as Int16. Considering Core data because the rest of the models are implemented in Core data. So I did a simple application. Core data with 1 entity and 1 attribute of Int16 type. Inserted 1 million entries in SQLite storage type and the file size turns out to be 16.2MB. Actually if I change ...

Sending a message to a subview after autorotate

I have a fairly simple view hierarchy in my iPad app. Window -> RootView -> TableView / DetailView TableView and DetailView are siblings added as subviews (as per a solution to a previous question). On launch TableView is in front. When you select a cell then method in the app delegate is called which swap them out putting DetailView ...

How to know if a function is finished?

Hi, I'm using [NSTimer scheduledTimerWithTimeInterval:0 target:self selector:@selector(myfunc:) userInfo:text repeats:false]; in my code. How can I know if myfunc has finished running so that I can fetch the global variables it has changed? Thank you! ...

Edit Individual Cell In NSArray

Hi I have an array with 10 objects and I put this into a table. How can I edit one of the individual objects in the array or refresh it? All the objects just hold text, so after I change the text how can I refresh the array? See where I am coming from? Thanks. ...

How to read and write an NSString with UTF8N?

How to read and write an NSString with UTF8N? I use this to load a UTF-8 file and it seems to work with UTF-8N. NSString *string = [NSString stringWithContentsOfFile:destPath encoding:NSUTF8StringEncoding error:&error]; The problem is when I save the file with [string writeToFile:tempFile atomically:YES encoding:NSUTF8StringEncoding e...

External Data with CompletionHandler not working

Hello, I have been working through some code and I would like to work out how to get around this problem with the GameCenter GameKit. There is some example code (now open to the public, no longer pre-release so I can talk about it). @synthesize playerStorage; - (void)loadPlayerData:(NSArray *)identifiers { [GKPlayer loadPlayersFor...

UITableView allowsSelection property for specific section

Hello , is there a way to set the allowsSelection property of UITableView for each table section separately, and not for the whole table ? Thanks in advance ...

message sent to deallocated instance 0x141dafb0 iPhone SDK

Hey Guys i am getting this error "message sent to deallocated instance 0x141dafb0" its comming from a UIBarButtonItem when its beeing pressed on the application. any help would be greatly appreciated Error: *** -[PeerConnection performSelector:withObject:withObject:]: message sent to deallocated instance 0x14143ff0 PeerConnection.h...

how to go one view from another view using with flip animation in iPhone

Hello, I am flip animation to go from one view to another and animation is working properly but when i am using button action on that view that time application is getting crash. Please help me out to solve this problem. my code is: Abtsk1 *secondViewController = [[Abtsk1 alloc] initWithNibName:@"Abtsk1" ...

Interface Builder NSStaticText value needs to be updated every time anything changes in dialog

I have a modal dialog thats building a string. The string is shown to the user, and the user presses checkboxes, radio boxes, etc to build the string. The string exists nowhere - I build it for display in -()builtString; from the configuration of the self.valuesDict. I can easily wire up the checkboxes via bindings in IB: for example to...

UITextview viewWithTag - updating the text doesn't work while I know I have access to it.

Hey There, your kind help on a small matter. I have a UITextview with a tag // Text view UITextView *currentPage = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, 300.0, 194.0)]; currentPage.scrollEnabled = YES; currentPage.textAlignment = UITextAlignmentLeft; currentPage.tag = 100; currentPage.editable = NO; currentPage...