I'm making a slideshow application in which I want to be able to click the view displaying the slideshow in order to pause or play it. I was hoping that just like with a button, I can send an action to my ViewController and thereby call a function th
I'm trying to make a query to the National Rail Enquiries system using SOAP, using Objective C. Unfortunately, I'm not getting very far with it. I've tried a few things, and all that happens is that I get an empty set of results back. National Rail,
My app uses multiple threads of NSTimer Object. Within the one function (called randomly at random times, not a fixed delay) I want it to pause the whole app, pause the threads for 1 second only. I have the following code: [self performSelector:@sele
I have 1 entity in my database "Message" with the values MessageID, messageText and i want to read every row of Core Data, make an object of my class "Message" and put the new object into an array. It's the first time I'm using Core Da
How can I find the count of a specific weekday occurring between two NSDates? I have searched for quite a while but came up with only solution in which number of total weekdays have been counted, not only the one specific week day.The idea of the fol
I'm porting my application from Windows to Mac using XCode. One thing my application does is it runs a WebSocket server for communication. I've seen many WebSocket client libraries on github, but I'm having trouble finding one that handles server com
I dragged a Table View from the library, and linked the datasource and delegate, it worked. But when the Application is running, I can double click the row in the table, and actually put some words in it. I just want it to be non-editable. What shoul
After parsing a XML File,i want to create dynamic objects like textbox and buttons based on the contents of xml. I have parsed my xml and retrieved the data. I have created a seperate class for XMLParser and made the call in my vieDidload method. Is
I want to referenciate a ket and not what it contains on a NSDictionary like this: key { 14819 = { contactDetails = { dictionary = { interests = { Movies = ... I want to make something like this: if([key isEqualToString:@"14819"]){ do something
So I just upgraded to the latest and greatest Xcode 4.4 but can't find Icon Composer. It was in the Open Developer Tool menu item in Xcode 4.3 but now I can't find it anywhere. Did Apple forget to include it? How do I create icons without it? I also
Currently I have Long Pres Gesture Recognizers on four different TableViews (two in each storyboard scene, therefore two storyboard scenes). I create these LPGR's with the following code in my ViewDidLoad method... //Add Long Press Gesture Reconizer
Possible Duplicate: Incorrect decrement of the reference count of an object that is not owned at this point by the caller Why shouldn't I use the getter to release a property in objective-c? So, I get that using [self.myProperty release] is discourag
I am trying to customize an NSTokenField and after trying several hours I realized that NSTokenField is not customizable enough (at least using public methods). Do you know an alternative to NSTokenField which can be easily customized? Thanks!How abo
I am using NSUserDefaults to store some data in my application. NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; [prefs setObject:@"dummy string" forKey:@"lastValue"]; [prefs synchronize]; For testing purposes I need to s
I use NSButton with empty title and image on it, and it cannot be accessed with VoiceOver. But when I'm setting title (VoiceOver seems to use title), NSButton tries to show it. I think there should be an easy way to not display title, or to set butto
how can I set KVO with an NSMutableArray? I want to be notified when a change appears in the array. I never used KVO before with a collection like an array.I think you'll be interested in the answers to this question. The key is that you can't observ
How do I print out something to the debugger console if the file is of .mm extension? I tried NSLog and printf but none shows anything on the debugger console.NSLog works just fine in .mm files, as well as printf. Even std::cout << "foo";
I have a couple of small programs that a mate of mine needs ported to OS X. I've used Mono to get a couple other things working on a Mac before, but while it made the port extremely easy, it just seemed a bit unwieldy. For the apps that I'm making I
Here is what i have in my main method: int main (int argc, const char * argv[]) { NSString *string=[[NSString alloc]init]; NSLog(@"%@ The retain count is:%d", string, [string retainCount]); NSLog(@"Hello, World!"); return 0; } The outp
I'm using QTKit to progressively download and play an MP3 from a URL. According to this documentation, this is the code I should use to accomplish that: NSURL *mp3URL = [NSURL URLWithString:@"http://foo.com/bar.mp3"]; NSError *error = nil; QTMov
My problem is not the best scenario for fork(). However, this is the best func I can get. I am working on a Firefox plugin on Mac OSX. To make it robust, I need to create a new process to run my plugin. The problem is, when I forked a new process, mu
I'd like to create a dragster/dropzone like dock menu. Looks a bit like a stack with a nsview in it. After a lot if documentation searching and googling I've found a way to determine a dock icon's location. (http://cocoadev.com/forums/comments.php?Di
Given a file path how do i check that this file is owned by current user? Currently i managed to get: [[[NSFileManager defaultManager] attributesOfItemAtPath:filePath error:outError] fileOwnerAccountID]; Which return NSNumber*. But i can't seem to go
If you create a status bar app with no windows, how do you respond to events? My first guess was creating an subclass of NSResponder and override the appropriate methods. However they never get called. This lead explicitly calling: [self becomeFirstR
I am trying to load an SWF inside a WebView in my cococa app, it works fine when I load an HTML which references the SWF. But i'd like do load the flash file alone, with no HTML. Is that possible??Yes. It's broken in currently-released WebKit (even o
I'm building an application where I want to provide the user with a few dozen templates that will internally take the form of property lists. I would also want to group them in categories, which would conveniently be achieved using folders. While I h
I'm working on Cocoa Application that should be able to analyze and highlight a source code written in such languages as Objective-C, SQL, JavaScript, Python etc. The text should be editable too (by using NSTextView, for example). Please advise what
I have an object that implements the indexed accessor methods for a key called contents. In those accessors, I call willChange:valuesAtIndexes:forKey: and didChange:valuesAtIndexes:forKey: when I modify the underlying array. I also have a custom view
There might be applications that are not suited for Core Data - image manipulation programs like Photoshop or Gimp for example. But for applications that are suited for Core Data, say Address Book or iCal, what is the criteria to choose Core Data ove
Memory (and resource) leaks happen. How do you make sure they don't? What tips & techniques would you suggest to help avoid creating memory leaks in first place? Once you have an application that is leaking how do you track down the source of leaks?