How to create a frame and fill it with a segmented control??
I want to create a frame and fill it with a segmented control. How would i do this??? ...
I want to create a frame and fill it with a segmented control. How would i do this??? ...
I'm surprised this doesn't happen automatically, but I would like my applications window to open automatically when the Dock icon is clicked. Just to clarify, when i open the app, the window automatically opens, but when I click the cross for the window but leave the App running, the window won't open when i click the dock icon. ...
Just wondering how I can make my app open automatically at login, but make this be able to be toggled on and off using a check box in the preferences window. ...
I am looking to disable the Command + Click combination on a toolbar button (located top-right) in a Cocoa window. I would still like to let the user show and hide the toolbar, but I do not want them to be able to select a different display mode (e.g. small icons, no icons, etc). Has anyone found a way to do this? Thanks in advance. ...
I have an array of objects that have QTTime structs as attributes. The objects are in an NSArrayController which is bound to an NSTableView. I have a QTMovieView set up as an IBOutlet. I want to have it such that when an item in the NSTableView is selected the QTMovieView's cursor is moved to the time indicated in the selected objects...
I have a path to file contained in an NSString. Is there a method to get its file size? ...
I have an NSTableView that contains a few columns that are populated with data. How do I set up a search bar that can filter the rows based on the content of a specific column? I am looking for the type of thing that is done with Spotlight in the Finder or the search bar in iTunes that can filter songs by metadata. ...
Hi, I am writing an application that initially starts with just an NSStatusItem element. From its menu, the user can click a menu item that opens an NSWindow. I would like that when that window is in focus, the application menu will be displayed. Is it possible? ...
I have a window that contains one QTMovieView. How do I make it so that resizing of the window will keep the window's aspect ratio the same? ...
I'd like to have an NSSlider that doesn't snap to tick points, except of the last two. This is the same behavior of the slider in System Preferences -> Energy Saver -> Computer Sleep. Any ideas on how to do this? ...
I'm building a utility application that synchronizes files across two systems for Mac OSX. I need to detect when a file has been renamed but is otherwise the same file. How do I do this in Cocoa? ...
I need help, I need to populate a tableview with objects from my array... I may be using some methods from mac code (lol). I just need some help. Here is my header and implementation files, thanks. #import <UIKit/UIKit.h> @interface Chuck_FactsViewController : UIViewController { IBOutlet UITableView *tableView; NSMutableArray *chuckJo...
I have an Obj-C 2.0 class that has an NSMutableArray property. If I use the following code, then the synthesised setter will give me an immutable copy, not a mutable one: @property (readwrite, copy) NSMutableArray *myArray; Is there any reason that Apple didn't implement the following syntax? @property (readwrite, mutablecopy) NSMuta...
I would like to create a custom check box that functions just like a normal check box but looks different, at the moment I am using normal check box's, is there a way to do this. P.S This is Cocoa i am talking about. ...
I followed the Tutorial in Cocoa Programming For Mac OS X to create a preferences window but am returned with 2 warnings which stop it from working/opening. These are the two warrnings: How can I resolve the problem? ...
I want to use a queue data structure in my Objective-C program. In C++ I'd use the STL queue. What is the equivalent data structure in Objective-C? How do I push/pop items? ...
Hi, I am trying to add a border att tha bottom of my textrured window with a sidebar. I would like to look exactly like in finder: for now it looks like that: And I can't find anything in Interface Builder how I can add this border. ...
The problem I've got is that when the preferences window is opened and then closed, it will not open again. Why is this happening and how can this be fixed? EDIT: Just noticed also I've got the same problem with Main Window. The window is being opened via the menu bar and is in a separate NIB file. ...
I'm trying to tag a picture file with a date in Cocoa and are trying to do this in a small command line tool. It works fine...but, I can't seem to be able to set the color. Am I doing something wrong? #import <Cocoa/Cocoa.h> int main (int argc, const char * argv[]) { [NSApplication sharedApplication]; NSAutoreleasePool * pool =...
I have a UITableViews inside of a TabBarController that are populated with separate arrays of data. Due to web syncing, this array updates, and I'd like to update the table. Calling: [self.tableView reloadData] will reload content in existing cells, but I need to add cells for the new data. It seems that this method is not calling -...