iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

get value of selected row NSTableView

how can i get value of selected row in NSTableView?

Use a Class name stored in a variable to call a Class method?

I’m probably over-thinking this/wasting time trying to avoid a bit of conditional code – so I thought I would ask. I’ve seen some other questions @ this sort of thing but they were using php or some other language. At the most basic, can I do something like this (I know the syntax is wrong): […]

Playing audio on the iPhone decoded by a third-party library

The third-party library generates sequential buffers of 16-bit signed stereo samples of any desired size. I can’t figure out which framework/functions to use to play from these buffers. I’ve been working off the example in this answer using AudioQueue but it’s obviously incomplete in ways I can’t resolve (local variables are used as if they […]

Change Keyboard Color in UISearchBar with apperance

I want to change the color of the keyboard to black, when the user taps on the search textfield. I was trying to achieve it with UITextField *textField = [UITextField appearance]; [textField setKeyboardAppearance:UIKeyboardAppearanceAlert]; but my build fails with this message Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UISearchBarTextField _UIAppearance_setKeyboardAppearance:]: unrecognized selector sent to instance […]

Customized UIProgressView with rounded corner images

I am having difficulties customizing UIProgressView with two images. I have found plenty of helpful questions on the internet, but my problem is a little different. Maybe in a way that images I am using are rounded on not cornered rectangles; therefore, stretchableImageWithLeftCapWidth method doesn’t seem to help in my case. When I stretch the […]

Get peer IP address and port on OSX in objective-c from NSStream, CFStream or Socket

I have written a server that listens on a specific port for incoming tcp connections. To manage the network connectivity I am using Streams (CFStream/NSStream). When a connection is esthablished I save all the information about this very connection in another instance of a dedicated class which is also set as the delegate for the […]

Crash on Core Data Migration

Some of our users crash on Core Data migration. There are already several questions about “Core Data Migration & crash”, mainly about memory usage and UI response. Migrating large Core Data database crash Out-Of-Memory while doing Core Data migration Core Data causing app to crash while migrating Core Data lightweight migration crash For high memory […]

How do you make an count-up timer in Objective-C?

I have looked everywhere but I cannot find out how to do so. I need a simple timer that can count up in milliseconds and can be stopped. (XCode 3.1, Objective-C, iPhone OS Development)

ARC does not dealloc when pointer is set to nil (using factory methods)

Edit: Problem defined below actually occurred with this code: int main(int argc, const char * argv[]) { @autoreleasepool { XYZPerson *myPerson = [XYZPerson person]; myPerson = nil; NSLog(@”The end.”); } } The method ‘person’ is a factory method. I have the following code: int main(int argc, const char * argv[]) { @autoreleasepool { XYZPerson *myPerson […]

libxml2 errors. no such file or directory

I am having this problem with the libxml2 framework for at least 2 days. Even though there are plenty solutions on the web, none of them seem to work for me. This is what I have attempted so far. 1) Right click Frameworks and add existing Frameworks. Located the libxml2/libxml2.2 and added it into the […]