Implementing GUI pop-ups on iPhone
Hello community, Is there any way to implement pop-ups similar to the system ones on iPhone? I'd like to see something similar to pop-ups used with Copy/Paste in 3.0 (screenshots) Thanks in advance! ...
Hello community, Is there any way to implement pop-ups similar to the system ones on iPhone? I'd like to see something similar to pop-ups used with Copy/Paste in 3.0 (screenshots) Thanks in advance! ...
Assume that I have this piece of code: @interface Foo : NSObject { Bar *bar; } @property (retain, nonatomic) Bar *bar; @end When using this field/property, is there any difference between lines: [self.bar doStuff]; and [bar doStuff]; ? When doing assignment, property method will perform correct retaining, but what about t...
How would I make a checkbox hide the dock icon if it was checked? I have made a checkbox toggle a menubar item but how would you do it with the dock icon? Looking for some code to do this. Thanks! ...
I have a UITableView that show a long list of data. Use sections and follow the sugestion of http://stackoverflow.com/questions/695814/how-solve-slow-scrolling-in-uitableview . The flow is load a main UITableView & push a second selecting a row from there. However, with 3000 items take 11 seconds to show. I suspect first from the load ...
I'm trying to re-implement an old Reversi board game I wrote with a bit more of a snazzy UI. I've looked at Jens Alfke's GeekGameBoard code for inspiration, and CALayers looks like the way to go for implementing the UI. However, there is no clean separation of model and view in the GeekGameBoard code; the model is the view, which makes ...
I programatically create an NSToolbar in my application. I just added a new button to the toolbar and added that button to the default configuration of the toolbar. When I run my application the new button is not shown by default. That's because I already have been using the program and I already have a plist file in which this new butto...
I have three tabs. When I press the tab button on the bottom, is it possible show the original view of the tab. Because when I change the view of tab1, go to tab2, then go back to tab1, I do not get the original tab1 view. The changes in tab1 remain. Is it possible to to reset tab1 view when I go back to it? ...
I'm writing a little network application in Cocoa, using objective-c 2.0. I have the garbage collector enabled in required mode (-fobjc-gc-only). When I run the code most of the time it works like a charm. But sometimes it just crashes without warning, and gdb launches. I'm as yet unable to get any useful info from GDB. The code is as fo...
I want to create an extremely simple iPhone program that will open a telnet session on a lan-connected device and send a sequence of keystrokes. Most of the code I've seen for sockets is overwhelming and vast overkill for what I want to do: open telnet socket to IP address send ascii keystrokes Any simple code examples out there I ca...
I understand the basic syntax of Objective-C, have installed Cygwin, and want to experiment. However i am unsure of two things: What i would import, and what the primitive type names are. Can someone help me? ...
I am trying to build something to dynamically instantiate an object from class-name similar to how Java's Class.forName method works, e.g. Class klass = Class.forName("MyClass"); Object obj = klass.instantiate(... I didn't see any such behavior in Objective-C so I would like to call a method to register Class when an Objective-C class...
I have a view who's methods are called by the accelerometer updates in the view controller. I need more than one method to use and change certain variables, for example one method initializes the variable and another updates their value with each accel update. I know if they were only used on one method I could declare them inside that...
I want to setup a Method dispatch table and I am wondering if it is possible to create pointer to a method in Objective-C (like pointer to function in C). I tried to use some obj-c runtime functions to dynamically switch methods but the problem is it will affect all instances. As I am very new to obj-c, an illustrated example would be ...
I have a self signed SSL certificate serving out my test enviroment. I would like to do some testing connecting to the service from my iphone however, the SSL exception is causing an error. Is there a way to ignore the SSL exception on the iPhone? Edit: I should have added a bit more detail, the answers below will work hoever if i ca...
I would like to check to see if I have an Internet connection on the iPhone using the Cocoa Touch libraries. I came up with a way to do this using an NSUrl. The way I did it seems a bit unreliable (because even Google could one day be down and relying on a 3rd party seems bad) and while I could check to see for a response from some othe...
I have made a quadratic equation solver for the iPhone and when the text box is clicked, my own custom keypad appears. I have a button that changes whether the number is positive or negative. Right now I what happens is that when the button is pressed (0 - current value of text) is what is displayed in the text box, so if the number is p...
I am looking for both UITabBarController and UINavigationController sample code. Please teach when knowing. ...
I'm writing an iPhone app that is mainly centered around grid patterns, so I have a Pattern class which contains an NSMutableArray of NSMutableArrays. This class implements NSCoding, and it seems the following code works just fine in my iPhone app: GridPattern * pattern = [GridPattern patternWithWidth:8 height:8]; [pattern setValueAtCo...
I have some sqlite querys that are slowding my iPhone App. I have 2 pattern that I repeat in my app. The first is with substr: SELECT Id FROM [Table] WHERE UPPER(substr(Name,1,1))='A' ORDER BY Name" (This run for the mayority of the alphabet. Is for a contact list) The other is a complex one with date: SELECT Id,customerCode, case...
Related to this SO question, I want to put the data loading in the background. However, I get 'library routine called out of sequence' errors. In this SO thread say that the way is using NSOperation, but looking on the samples on the web I not know how that could solve the issue. I share a single sqlite connection with the singleton p...