Hey guys, I want to layout a group of buttons on the window. What I want is connecting those buttons to a "buttons array" I set up in the controller class. Is there a faster way to do the connection in the IB? I know one way to do that is to layout those buttons programmatically, but somehow I am not quite familiar with the view architec...
UPDATE: I ended up giving up and added GHUnit to my project instead. I got up and running with GHUnit in a matter of minutes.
UPDATE: You can download the Xcode project here: http://github.com/d11wtq/Cioccolata
I've added a Unit Test target to my Xcode project but it fails to find my framework when it builds, saying:
Test.octest could...
In Xcode, when source and test classes in are different folders - In the 'Test' task - how do you link against the source, as opposed to adding the all source files to the test task ?
...
The title says it all. I'm looking for a way to do what the equivalent of WindowFromPoint and GetWindowRect do, in Carbon/Cocoa and X11.
WindowFromPoint - http://msdn.microsoft.com/en-us/library/ms633558%28VS.85%29.aspx
GetWindowRect - http://msdn.microsoft.com/en-us/library/ms633519%28VS.85%29.aspx
...
In XCode - Is there a way of running just one test(one test case or preferably one test method). What I do today is to run the 'Test' task which runs all tests and takes up a lot of time.
Thanks
...
I have a nib (winA.xib) that contains a window. My app delegate contains an NSWindowController subclass called WinAController.
WinAController has a property (NSMenu *mainMenu) that I want to point to the MainMenu. I have set it after I instantiate WinAController with this code:
WinAController = [[WinAController alloc] initWithWindo...
I would like to have a customizable chooser where many features may be customized. One thing I cannot figure out how to do is change the text of the cancel button. I found that the method setPrompt will change the text of the okay button but I can find no similar method for the cancel button, is there such a method?
...
My UI is not updating when I expect it to.
The application displays "projects" using a view similar to iTunes -- a source list on the left lets you filter a list (NSTableView) on the right. My filters update properly when they are examining any simple field (like name, a string), but not for arrays (like tags).
I'm removing a tag f...
I recently started another thread without an account, so I'm reposting the question here with an account so I can edit current links to the program so other users can follow this. I have also updated the code below. Here is my original question:
I read the other post here on Outlineviews and DND, but I can't get my program to work. At...
Hi all,
how do I switch keyboard layout (AKA input source) programmatically in MacOS X in a Cocoa/Objective C program? Thanks in advance.
...
how to display title in colom cell of NSTableView?
...
What I am trying to do (under 10.6)....
I have an image (jpeg) that includes an icon in the image file (that is you see an icon based on the image in the file, as opposed to a generic jpeg icon in file open dialogs in a program). I wish to edit the exif metadata, save it back to the image in a new file. Ideally I would like to save th...
So I started reading this book:
http://www.amazon.com/Cocoa-Design-Patterns-Erik-Buck/dp/0321535022
On chapter 2 it explains about the MVC design pattern and gives and example which I need some clarification to.
The simple example shows a view with the following fields:
hourlyRate, WorkHours, Standarthours , salary.
The example is dev...
Hi,
I have a super view, which has 2 subviews.
These subviews are overlapped.
Whenever i choose a view from a menu, corresponding view should become the front view.
i.e., it should be the font most subview.
acceptsFirswtResponder, resigns all work fine.
But the mouse down events are sent to the topmost sub view which was set.
Regard...
i have an NSObject with 2 property's
@interface Entity : NSObject {
NSNumber *nid;
NSString *title;
}
i have 2 array's with Entity's objects in it and I want to compare those two on the nid with a predicate
array1: ({nid=1,title="test"},{nid=2,title="test2"})
array2: ({nid=2,title="test2"},{nid=3,title="test3"})
the 2...
Hi,
why isn't it possible in Cocoa that two Classes both import each other?
I tried the following code:
Controller.h:
#import <Cocoa/Cocoa.h>
#import "Model.h"
@interface Controller : NSObject {
Model *model;
}
@end
Model.h:
#import <Cocoa/Cocoa.h>
#import "Controller.h"
@interface Model : NSObject {
Controller *controller;
}
...
I'm sure this is a really simple problem but I am pulling my hair out over it!
I have a subclass of NSWindowController called WinAController. This has been created in IB and is in MainMenu.xib.
I have a separate nib called WinA.xib that contains just a single window. In this nib, I have set the following:
Class of File's Owner to Win...
I have an NSTableView which has its first column set to contain a custom NSTextFieldCell. My custom NSTextFieldCell needs to allow the user to edit a "desc" property within my Managed Object but to also display an "info" string that it contains (which is not editable). To achieve this, I followed this tutorial. In a nutshell, the tutoria...
I want to get fields name from the sqlite database in my mac desktop application.How it possible please help me.
...
I use Twitter-OAuth-iPhone.
http://github.com/bengottlieb/Twitter-OAuth-iPhone/
when i try to login on twitter with SA_OAuthTwitterEngine, I received an error 401
i received the delegate call for
- (void) OAuthTwitterController: (SA_OAuthTwitterController *) controller authenticatedWithUsername: (NSString *) username {
but when i tr...