cocoa

Sparkle framework doesn't check for updates on startup

I am developing a Cocoa application, and using the Sparkle framework for updating. I need to check whether any new version is available at startup. I added the SUCheckAtStartup key to info.plist and updated its status as true, but still the application is not asking for update at startup. How can I fix this? Thanks in advance... ...

How do I implement a customized list in Cocoa?

Hi, I want to build a Cocoa App with a list of entries very similar to the ToDo list of Things.app (see the screencast). The question is whether I should use a TableView, a CollectionView or a WebView. I think it could work with all of them, but which one suits the following requirements best? have a list of entries -> 1 column & ...

Uploading Multiple Files For FTP in Mac

Hi i am using Connection Kit Framework in my cocoa application.. I need to set multiple connections to a ftp server. and also i am facing problem in multiple file uploads.. How can i do that using connection Kit.. Can anyone Guide me on this.. I want to connect to ftp from three different classes.And also i need to upload from three cla...

Is there memory leakage when reassigning a variable?

Suppose I have a variable that's already been initialized to a string via an alloc/init combination. Will I have memory leakage if I reassign it via processing, ie. NSString *s = [[NSString alloc] initWithString:someOtherStringVariable]; s = [s stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; Has th...

Cocoa automated WebView

Howdy, I looking into making a kind of robot testing browser. Like Selenium, but one that we can use to make full integration tests of our site. I'm wondering if it's possible to create a Cocoa app that loads up a web page in a WebView and they programmatically sends click events. I realize you could use: - (NSString *)stringByEvaluati...

NSTextView won't respond to setString

I'm new to Cocoa, and I've been having a problem that is absolutely maddening. I'm trying to write a simple NSString to an NSTextView, and for some reason it just won't respond. No compiler warnings, no runtime errors, just a blank textview. I'm able to use other methods of NSTextView like selectAll, delete, setSelectedRanges, etc. ...

Dynamic Results and Covering Data

Hi Everyone: Today I have a question that sprouted off of this one: http://stackoverflow.com/questions/1082840/database-results-in-cocoa. It's regarding using the data that was returned by a database to create a certain number of questions. I am using a form of the following code (this was posted in the question). NSMutableDictionary...

WebView history

When is a page added to the forward backward list in WebView? I have [webview setMaintainsBackForwardList:YES], but [webview canGoBack] still returns NO after I do a couple of [[webview mainFrame] loadRequest:request]. Why is that? ...

Subclassing a class, while needing to use the delegate

Say for example you want to subclass UIScrollView to create UITableView, and you don't want to use any private interfaces. In order to load cells, you must use the the parent's delegate (scrollViewDidScroll in UIScrollViewDelegate). Additionaly, you want to add some of your own methods to the delegate (e.g. tableView:willDisplayCell:for...

Cocoa Interface Builder's 'Attributes Inspector' like window

Hi all! I'm making a Cocoa application, and I would like a panel like the 'Attributes Inspector' in Interface Builder. So with big tabs on the top and collapsable/expandable groups. Does anyone know how I can do this? This is an image of the Attributes Inspector: So I actually want to make a window like the one shown in the image ab...

Scroll bars in NSTokenField

Is it possible to get scroll bars on an NSTokenField when there are too many items to display? I've tried embedding it in a scroll view but it doesn't work. Thanks ...

When declaring objects in Cocoa, should I set them to nil?

Say I want to create an instance of NSString, which is initialized to a certain value depending on the value of another variable. Normally, I would do NSString *string; if(foo == 1) string = @"Foo is one."; else string = @"Foo is not one."; However, in some sample code that I've seen, I've seen people do NSString *string = ni...

Core Animation window flip effect

Any tutorials or sample code to get the Core Animation window flip effect? I'm using Flipr right now, which uses Core Image to generate the effect but CoreAnimation is much smoother Thanks ...

Is there a way to use NSPredicate to issue an NSDeleteRequest vs. an NSFetchRequest in Core Data?

I don't think the class NSDeleteRequest exists, but I want it to. I can make an NSPredicate and use NSFetchRequest to issue: select * from foo where x=y How can I issue: delete from foo where x=y ? The only way to delete 1000's of rows seems to be to fetch them, loop thru them, and call delete on each NSManagedObject. Is that righ...

program simple tone generator that plays two tones one in each of the two stereo

i wish to generate two opposing tone one in the right stereo channel and one in the left stereo channel both at different frequencies i wish to accomplish this in c or objective c ...

iPhone subview design (UIView vs UIViewController)

I'm designing a simple Quiz application. The application needs to display different types of QuizQuestions. Each type of QuizQuestion has a distinct behavior and UI. The user interface will be something like this: I would like to be able to design each type of QuizQuestion in Interface Builder. For example, a MultipleChoiceQuizQuesti...

How to add a checkbox in a alert panel?

I want to add a checkbox in a alert panel . But now I found that the func: setShowsSuppressionButton not be used under MAX 10.5. My system version is 10.4.11 ! Which other methods I can do ? I didn't want to make a panel by my self . Thank you very much! ...

Starting editing for a Row as soon as it is Added.

I have an NSOutlineView and what I want to happen is that when a row is added I want the row that has been added to Start Editing immediately like when you double click on a row. ...

Infinite loop when running code in terminal from xcode

Hello everyone I'm writing a small app to keep track of local mono sites. I'm mostly writing this for my own use and to play around with xcode To start the server i run the following code: [task setLaunchPath: @"/usr/bin/xsp2"]; NSArray *arguments = [NSArray arrayWithObjects: @"--root", [[document selectedSite] valueForKey:@"path"], ...

How am I leaking memory?

I have a table view that when loading creates a person object Person.h #import <UIKit/UIKit.h> #import "TwitterHelper.h" @interface Person : NSObject { NSDictionary *userInfo; NSURL *image; NSString *userName; NSString *displayName; NSArray *updates; } /* @property (retain) NSString *userName; @property (retain) NS...