bring window to front from its id/number
Hello, I am looking for a fast way to bring a window to from from its id (window number). Do you have any idea for this? Thanks in advance for your help. Regards, ...
Hello, I am looking for a fast way to bring a window to from from its id (window number). Do you have any idea for this? Thanks in advance for your help. Regards, ...
Hi, I need to let the user to customize the HUD window appearance. Is there a way to change the frame and the title area color of HUD window? There is an API for changing a background color of the window, but title and the frame stay semitransparent black. I'd like to avoid drawing these areas by myself. Thanks, Nava ...
Hello, The library of Aperture is visible in the file system as a package. Inside this package, there's an XML file (among other things) that I want to get access to. The problem is that I can't simply use the path to that XML file due to the fact that the file is contained in a package (which needs to be opened first). Is there a way ...
Hello experts, I have troubles getting my NSTableView keep the contents of a to-many relationship ordered. What I have is an entity "Relationship" in a to-many relationship with an entity "Card" both managed by an NSArrayController. Card has 2 attributes, "number" (int) and "name" (String) displayed via Bindings in two columns of a NS...
Hi, I'm looking for a way to create a .cur file on Mac OS X I saw that there is a support for .cur file in the NSImage documentation but as far as I tested it I could not produce this file format. Anny ideas ? 10x ...
a button's IBAction in windowA calls runModalForWindow:windowB. windowB becomes key and modal. windowB has a popUpWindowDatePicker which calls stopModal upon display, and then popUpWindowDatePicker becomes key, and windowB resigns key and is not modal. no window is modal at this point. when popUpWindowDatePicker is dismissed, its didR...
When I restart my Core Data application with a to-many relationship my data (presented in NSTableView) is in random order. How do I keep it in that order in which the user left it before quitting the application? Of course, I can sort the data in awakeFromNib but that does not give me the precise order the user used to arrange the data ...
I'm about to start a new Cocoa project from scratch and one of the requirements I have already been given is being able to choose either a Cocoa GUI or a command line mode from the same executable. Scriptability may be a possible addition in the future but that is not a concern right now. What is the best strategy for going about this ...
Hello all! Great website, has been super helpful these past few weeks. I am writing an app in Cocoa that requires the use of a C++ dylib and header files. I need to call functions from a header file in my app. Ive tried several ways to import and include these libraries into my app but always end up with missing symbol errors. The librar...
In my application I add objects directly to an ArrayController. When I want to clean all items I do: [[downloadItemsController content] removeAllObjects]; This command however does not refresh the TableView the arraycontroller is bound to. If I remove all items and add another new items I only see that item. That is fine but if I don'...
I am trying to recreate the nice textured buttons like Finder, Safari and Transmission have in their toolbar. First I started by just dragging in a "Texture button" in the IB and such. All works well except for when a user sets the toolbar to "Text only" mode. When he then clicks the button the toolbar will enable "Icon and Label" on it...
I am having a problem very similar to this question here: Can I use NSURLCredentialStorage for HTTP Basic Authentication? The author of that question accepted an answer but later posted that the solution code was returning NSURLErrorUserCancelledAuthentication errors. I am using DIGEST authentication, but otherwise my code is doing the ...
Hi, I'm trying to make a method with a similar format to the setAutoresizingMask: method of NSView. I want to have someone be able to specify multiple values that i declared in my enum (NSHeightSizable | NSWidthSizable) like in autoresizing mask. How can I do this? ...
Hello, Im sure this is something really simple I'm missing. I use makeKeyAndOrderFront: to open a window and it works the first time. When I close the window and try and open it again it quits and gives me the error EXC_BAD_ACCESS. My code is this: - (IBAction)viewScreen:(id)sender { [screenView makeKeyAndOrderFront:sender]; } I can...
I'm using Ruby to check the position of videos I'm playing in Quicktime via Scripting Bridge. At the moment I'm just checking the position like so every n seconds: require 'osx/cocoa' include OSX OSX.require_framework 'ScriptingBridge' app = SBApplication.applicationWithBundleIdentifier_("com.apple.QuickTimePlayerX") while true ap...
Hey guys, I am working on an application for OS X that needs communication of small bits of data between a server side application and a client side application. I tried using a Ruby on Rails server as a backend way of communicating data, which was very simple and easy to implement but caused a bit of issues (I am not a proficient Ruby ...
Hi, How to get total time duration of music in audioQueue. I am using NSTimeInterval AQPlayer::getCurrentTime() { NSTimeInterval timeInterval = 0.0; AudioQueueTimelineRef timeLine; OSStatus status = AudioQueueCreateTimeline(mQueue, &timeLine); if(status == noErr) { AudioTimeStamp timeStamp; AudioQu...
NSCollectionView was introduced in OS X 10.5, and is not yet implemented in Cocotron. I am trying to implement a small app that will allow creating properly packaged data files for an online service, which will then be uploaded by an administrator. More specifically, the user will create a collection of input and output data pairs, by d...
hi, I have a textfield cell and a push button in the cocoa . I want to copy the text in teh textfield by clicking on the button. in clipboard.h #import <Cocoa/Cocoa.h> @interface clipboard:NSObject { IBOutlet id but1; IBOutlet id numf2_1; NSPasteboard *pasteBoard; } - (BOOL) writeToPasteBoard:(NSString *)stringToWrite; ...
I need the user select an existing or a new directory where my app can save a few files. Can i do this with NSSavePanel or is there another directory selector class? ...